How can I inspect and tweak :before and :after pseudo-elements in-browser?

后端 未结 7 2071
被撕碎了的回忆
被撕碎了的回忆 2020-12-04 23:13

I have created some fairly elaborate DOM elements with an :after pseudo-element, and I\'d like to be able to inspect and tweak them in either Chrome Inspector or Firebug or

相关标签:
7条回答
  • 2020-12-04 23:49

    At least since Chrome 62 there's a setting in DevTools to 'Show user agent shadow DOM' which displays additional pseudo-elements like input placeholders, which wouldn't show up in the DOM tree otherwise.

    More information: https://stackoverflow.com/a/26853319/3963594

    0 讨论(0)
提交回复
热议问题