IE10:' visibility:visible'在' visibility:hidden'的伪元素之前元素 [英] IE10: 'visibility:visible' on before pseudo-element of 'visibility:hidden' element

查看:77
本文介绍了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很烂,处理它.
我认为唯一的方法是将隐藏文本"的颜色更改为背景颜色,其余的...

这篇关于IE10:' visibility:visible'在' visibility:hidden'的伪元素之前元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆