首页
CSS
CSS 圆角
试用:创建圆角
运行 ❯
获取您的
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往空间
<!DOCTYPE html> <html> <head> <style> #rcorners1 { border-radius: 25px; background: #73AD21; padding: 20px; width: 200px; height: 150px; } #rcorners2 { border-radius: 25px; border: 2px solid #73AD21; padding: 20px; width: 200px; height: 150px; } #rcorners3 { border-radius: 25px; background: url(paper.gif); background-position: left top; background-repeat: repeat; padding: 20px; width: 200px; height: 150px; } </style> </head> <body> <h1>The border-radius Property</h1> <p>Rounded corners for an element with a specified background color:</p> <p id="rcorners1">Rounded corners!</p> <p>Rounded corners for an element with a border:</p> <p id="rcorners2">Rounded corners!</p> <p>Rounded corners for an element with a background image:</p> <p id="rcorners3">Rounded corners!</p> </body> </html>