[英]How to target ::before and ::after pseudo elements in Internet Explorer 9 Developer Tools?
When inspecting elements in IE9 Developer Tools I can't see the pseudo elements I have defined in my CSS in the HTML pane: 在IE9 Developer Tools中检查元素时,我无法在HTML窗格中看到我在CSS中定义的伪元素:
However I can see them in the CSS pane, but they have strike-through suggesting the styles are being overridden, and hence have no effect when modifying them. 但是我可以在CSS窗格中看到它们,但是它们有突破显示样式被覆盖,因此在修改它们时没有任何效果。
How do I target ::before and ::after elements for inspection in IE9? 如何在IE9中检查:: before和:: after元素以进行检查?
Note: this may appear to be a duplicate of this question but in my case the elements are div container elements, so I don't think the answer to that question applies here. 注意:这似乎是这个问题的重复,但在我的情况下,元素是div容器元素,所以我认为这个问题的答案不适用于此。
Quoting from another answer: 引用另一个答案:
IE 9 supports the notations ::after and ::before (with two colons) in “standards mode”. IE 9在“标准模式”下支持符号:: after和:: before(带两个冒号)。 In “quirks mode”, it does not. 在“怪癖模式”中,它没有。
https://stackoverflow.com/a/14145917/5973334 https://stackoverflow.com/a/14145917/5973334
So the only possible reason would be for something in you code to have activated the “quirks mode” 所以唯一可能的原因是你的代码中有些东西激活了“怪癖模式”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.