(即模拟支持所有版本的IE10的时候,也是我发现在Internet Explorer中一些奇怪的行为::after
)。 当应用伪元素的元素的悬停状态( .element:hover::after
),它不能在IE浏览器,但它在所有其他主流浏览器一样。
http://jsfiddle.net/BramVanroy/9jpeZ/1/
#d1::after { /* Works in IE */
content: "no hover needed";
border: 1px solid blue;
display: block;
}
#d2:hover::after { /* Does not work in IE */
content: "Y U NO WORK IN IE";
border: 1px solid blue;
display: block;
}
是否有一个CSS修复可用于此? (没有JS / jQuery的。)