border-radius 属性

阅读数:1033 发布时间:2016-07-09 21:03:07

作者:w3ljn 标签: CSS3属性 添加圆角边框 w3ljn

定义

border-radius属性为元素添加圆角边框,用于设置四个 border-*-radius 属性。

语法

border-radius: 1-4 length|% / 1-4 length|%;

该写法为省略写法。

4个值依次的顺序为:top-left, top-right, bottom-right,bottom-left

实例

div
{
    border:2px solid;
    border-radius:0 25px 0 25px;
}

相关文章推荐: