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

问题描述:

我用 visibility:隐藏制作了 DIV ,并用 visibility附加了该DIV的 :: before 伪元素:可见.在Firefox,Chrome和Safari中,这可以按预期工作,但是在Internet Explorer 10中,伪元素不会呈现.

I have made a DIV with visibility: hidden and attached a ::before pseudo-element of this DIV with visibility: visible. This works as expected in Firefox, Chrome and Safari, but in Internet Explorer 10 the pseudo-element does not render.

请说明我是在解决此问题还是Internet Explorer的问题.有什么解决方法(我们只能访问CSS,而不能访问源HTML)?

Please explain if I'm accomplishing this wrong, or whether this is an issue with Internet Explorer. Are there any work arounds (we only have access to the CSS, not the source HTML)?

JSFiddle演示了问题.

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

Filters don't work on pseudo elements in IE.
Read: msdn

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


IE很烂,处理它.
我认为唯一的方法是将隐藏文本"的颜色更改为背景颜色,其余的...