border-radius属性为元素添加圆角边框,用于设置四个 border-*-radius 属性。
border-radius
border-radius: 1-4 length|% / 1-4 length|%;
该写法为省略写法。
4个值依次的顺序为:top-left, top-right, bottom-right,bottom-left。
top-left, top-right, bottom-right,bottom-left
div { border:2px solid; border-radius:0 25px 0 25px; }
相关文章推荐: