IE10:'visibility:visible'在'visibility:hidden'元素的伪元素之前

时间:2013-07-08 15:53:47

标签: html css internet-explorer visibility pseudo-element

我使用DIV制作了visibility: hidden,并使用::before附加了此DIV的visibility: visible伪元素。这在Firefox,Chrome和Safari中可以正常工作,但在Internet Explorer 10中,伪元素不会呈现。

请解释我是否完成了这个错误,或者这是否是Internet Explorer的问题。有没有解决方法(我们只能访问CSS,而不是源HTML)?

JSFiddle demonstrating issue

1 个答案:

答案 0 :(得分:11)

过滤器不适用于IE中的伪元素 读: msdn

Other specified styling properties apply to the appearance of the inserted content, not to the element's content.


IE糟透了,处理它。
我认为唯一的方法是将“隐藏文字”颜色改为你的背景颜色,你知道其余颜色......