html - Google Chrome Dev Tools 删除元素的 :after from DOM when :after display is none

标签 html css google-chrome pseudo-element css-content

我的问题是关于 Google Chrome Dev Tools 的,当我想将 display: none; 暂时设置为 DOM 中的 after 但 Chrome 从 DOM 中删除了所有 afters 元素,我无法访问又是他们。 我的 Chrome 版本是最后一个。 Google Chrome Dev Tools 设置中是否有针对此问题的任何解决方案? 感谢您的关注。

最佳答案

似乎没有禁用此行为的选项,但解决方法是选择您要关闭的 ::after 附加到的原始元素,您会发现它::after 样式面板中的伪元素 CSS 规则(位于名为“Pseudo::after element”的部分的底部),完成 display: none 声明刚刚添加。

关于html - Google Chrome Dev Tools 删除元素的 :after from DOM when :after display is none,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54089654/

相关文章:

javascript - 如果在输入字段中输入错误的类型,则在 Chrome 中显示消息

google-chrome - Chrome 扩展桌面通知

jquery - 使用淡出效果从表中删除行

javascript - 如何为google表单预填链接生成二维码

javascript - jQuery 可放置和可拖动元素看不到对方

css - block 元素,水平居中对齐和可能的最小宽度

html - 使用 css 在链接中定位图像

html - 在 OPTGROUP 元素上应用 CSS 类

html - 如何让 3 个输入具有与它们旁边的文本区域相同的组合高度?

javascript - 是什么导致 Shiny 的应用程序在 Chrome 中卡住但在 Safari 中不卡住?