看见那个<div>
元素正确渲染边框/边框半径,但任何<a>
or <button>
设置了背景、边框和边框半径的文件将背景颜色或图像显示为正方形,只有边框是圆形的。尝试设置<a>
& <button>
to display: block
or display: inline-block
但这没有用。
有已知的解决方法吗?
以下是来自 Webkit 的计算样式的链接:https://gist.github.com/773719 https://gist.github.com/773719
Here is the computed style from IE9 dev tools:
Update使用过滤器:;或-ms-过滤器:; IE 中具有渐变的属性使背景突破定义的边框半径。
我发现这篇优秀的博客文章展示了如何使用 SVG 渐变精灵来解决这个特定问题:http://abouthalf.com/2010/10/25/internet-explorer-9-gradients-with-rounded-corners/ http://abouthalf.com/2010/10/25/internet-explorer-9-gradients-with-rounded-corners/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)