【发布时间】:2017-06-08 22:06:38
【问题描述】:
我的整个网站都有边框,效果很好,现在我怎样才能让它有圆角,我试过了:
border-radius: 25px
但它不起作用,这是正常的边框代码,但我需要将它四舍五入:
.ct, .cb, .cr, .cl {
border-radius: 25px
background-color: #ffffff;
position: fixed;
z-index: 99999;
}
.ct {
border-radius: 25px
top: 0;
right: 0;
left: 0;
height: 20px;
}
.cr {
border-radius: 25px
top: 0;
right: 0;
bottom: 0;
width: 20px;
}
.cb {
border-radius: 25px
bottom: 0;
right: 0;
left: 0;
height: 20px;
}
.cl {
border-radius: 25px
top: 0;
left: 0;
bottom: 0;
width: 20px;
}
提前致谢
【问题讨论】:
-
我没有看到任何边框定义。没有它,它什么也做不了。
-
也没有 ;后边框半径:25px
-
我想他的边界是这4个类
-
我添加了:border-radius: 25px;对这些中的每一个,但由于某种原因不起作用。不知道为什么
-
所有边框半径:25px 缺失;
标签: css border rounded-corners