运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往空间
<!DOCTYPE html> <html> <head> <style> #example1 { border: 2px solid red; padding: 10px; border-top-right-radius: 25px; } #example2 { border: 2px solid red; padding: 10px; border-top-right-radius: 50px 20px; } </style> </head> <body> <h2>border-top-right-radius: 25px:</h2> <div id="example1"> <p>The border-top-right-radius property defines the radius of the top-right corner.</p> </div> <h2>border-top-right-radius: 50px 20px:</h2> <div id="example2"> <p>If two values are set; the first one is for the top border, the second one for the right border.</p> </div> </body> </html>