【发布时间】:2014-04-10 01:05:33
【问题描述】:
我在 IE10 上遇到了一个关于具有边框半径的元素及其绝对定位的伪内容的问题。
所以,HTML:
<div id="parent">
<div id="border">
</div>
</div>
还有 CSS:
#parent {
width: 200px;
height: 200px;
}
#border {
width: 50px;
height: 50px;
border-radius: 5px;
background: gray;
position: relative;
}
#border:after{
content: "";
display: block;
position: absolute;
width: 30px;
height: 50px;
background: green;
left: 100%;
top: 0;
}
在 Chrome 上渲染:
在 IE10 上渲染:
谁能帮我解开这个谜?
谢谢!
已测试:3 台不同的机器,装有 Windows 7 和 IE10。
【问题讨论】:
-
我已经在 IE 10 中测试了小提琴,它看起来与 Chrome 呈现的相同。对不起。
-
我在 3 台不同的机器上进行了测试,都遇到了同样的问题。
-
对我来说,在 FF、Chrome 和 IE 上看起来都一样。
-
@PAdrian 这是我这边的快照:i.imgur.com/gGdRdmB.png
-
在 Windows 8 和 IE10 上测试过:和 Chrome 一样,你试过清除缓存吗?
标签: html css internet-explorer-10