关于CSS圆弧角百分比形式

时间:2020-10-20 21:17:10   收藏:0   阅读:53

如果属性border-radius:50%, 采用类似的百分比的形式, 则是分别按照长和宽的像素乘以百分比

 

例如:

技术分享图片
 1 div{
 2     width:200px;
 3     height:100px;
 4     border-radius:50%
 5 }
 6 
 7 等价于
 8 
 9 div{
10     width:200px;
11     height:100px;
12     border-radius:100px/50px;
13 }
14 
15 就变成了椭圆说明代码
说明代码

 

原文:https://www.cnblogs.com/longxingzhe/p/13848450.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!