简体   繁体   English

如何在Internet Explorer 9开发人员工具中定位:: before和:: after伪元素?

[英]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中定义的伪元素: IE9 HTML窗格

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窗格中看到它们,但是它们有突破显示样式被覆盖,因此在修改它们时没有任何效果。 IE9 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.

相关问题 CSS伪元素:在&之后:在Internet Explorer中以不同的方式工作 - CSS Pseudo-elements :before & :after work differently in Internet Explorer 在伪元素无法在Internet Explorer中为<a>元素工作之前 - Before pseudo element not working in Internet Explorer for <a> element 伪元素之前和之后 - Before and After Pseudo Elements 带有背景图像的 Internet Explorer 伪元素 - Internet Explorer pseudo elements with background image CSS:如何删除伪元素(之后、之前……)? - CSS: How to remove pseudo elements (after, before,…)? 如何瞄准前后伪元素? - How to aimate the before and after pseudo elements? 如何保存在SharePoint 2013中使用Internet Explorer开发人员工具所做的HTML更改? - How can I save HTML changes I made using Internet Explorer Developer Tools in SharePoint 2013? 有没有办法使用鼠标使伪元素在Chrome开发者工具中可见? - Is there a way to use the mouse to make pseudo elements visible in Chrome Developer Tools? Internet Explorer中选择标记选项中的CSS伪元素 - CSS pseudo elements in select tag options in Internet Explorer Internet Explorer 11 和 Edge 中伪元素的 CSS 指针事件 - CSS pointer-events for pseudo elements in internet explorer 11 and Edge
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM