W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<!DOCTYPE html> <html> <head> <style> p.normal { border: 2px solid red; } p.round1 { border: 2px solid red; border-radius: 5px; } p.round2 { border: 2px solid red; border-radius: 8px; } p.round3 { border: 2px solid red; border-radius: 12px; } </style> </head> <body> <h1>border-radius 属性</h1> <p>此属性用于为元素添加圆角:</p> <p class="normal">普通边框</p> <p class="round1">圆角边框</p> <p class="round2">角更圆的边框</p> <p class="round3">角最圆的边框</p> </body> </html>