Border Radius only rounding the top of a div?
在带有边框的 div 上应用border-radius 属性只会将它应用到顶角。这是为什么呢?
示例:
https://jsfiddle.net/07tqbo56/1/
1
2 3 4 5 6 7 8 |
.asd {
margin-top: 35px; width: 123px; border-top-style: solid; border-top-color: #1163b9; border-top-width: 70px; border-radius: 70px; } |
1
|
|
这就是它在 Firefox 72、Ubuntu 19 上的样子。
不仅在 FireFox 中,在所有浏览器中都会如此,
你想这样做吗?
来源:https://www.codenong.com/59901005/