Seeing CSS pseudo-elements in Firebug

荒凉一梦 提交于 2019-12-01 21:37:46

问题


Is there any workaround to see CSS pseudo-elements like :after, :before, etc. (which are known as CSS3 Generated and Replaced Content Module) in Firebug?

Right now, when I select an element, I only see static CSS applied to it. I don't see styles applied to it using :after and :before pseudo-elements.


回答1:


You can use webkit's (chrome) developer's tool to view and modify pseudo-element's style, while you won't be able to inspect them via HTML, you can select the affected elements which generates the pseudo-element and you will see the relevant CSS.




回答2:


click directly onto parent TAGNAME to see its ::after ::before classes:



来源:https://stackoverflow.com/questions/8417656/seeing-css-pseudo-elements-in-firebug

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!