最近我遇到了以下未知的边界半径语法:
.myClass{
border-radius: 30% / 20%;
}
任何人都可以解释语法.
它与IE8兼容吗?
最佳答案
从W3C开始:
If values are given before and after the slash,then the values before
the slash set the horizontal radius and the values after the slash set
the vertical radius. If there is no slash,then the values set both
radii equally.
至于支持,IE8不支持border-radius属性,无论你写的是什么语法.如果你想在IE8上使border-radius工作,可以使用像CSS3 Pie这样的polyfill.
您可以在CanIUse上查看跨浏览器的边界半径支持.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。