我用visibility: hidden
做了一个DIV
,并用visibility: visible
附加了这个DIV的::before
伪元素。这在Firefox、Chrome和Safari中可以正常工作,但在Internet Explorer10中不会呈现伪元素。
请解释我完成此操作是否有误,或者这是否是Internet Explorer的问题。有什么解决办法吗(我们只能访问CSS,不能访问源HTML)?
JSFiddle demonstrating issue。
发布于 2013-07-25 17:17:16
过滤器不适用于IE中的伪元素。
阅读:msdn
Other specified styling properties apply to the appearance of the inserted content, not to the element's content.
IE烂透了,接受它吧。
我认为唯一的方法就是把“隐藏文本”的颜色改成你的背景颜色,剩下的你都知道了……
https://stackoverflow.com/questions/17530947
复制相似问题