
{
border-radius:50px;width:100px;height:100px;border:1px dashed red }
实线圆环
{
border-radius:50px;width:100px;height:100px;border:1px solid red }
完整代码
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>菜鸟教程(runoob.com)</title> <style> div {
border-radius:50px;width:100px;height:100px;border:1px dashed red } </style> </head> <body> <div>border-radius 属性允许您为元素添加圆角边框! </div> </body> </html>
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/218839.html原文链接:https://javaforall.net
