Google Chrome Dev Tools inspect element styles not showing

前端 未结 12 935
难免孤独
难免孤独 2020-12-13 23:44

Starting a couple of weeks ago....on some of our sites, but not all, when inspecting an element, the styles tab only shows the \"styles box\", but not the actual styles rela

12条回答
  •  [愿得一人]
    2020-12-14 00:05

    I was just having the same odd issue. I'm not 100% sure what triggered this to happen but we use build tools to build SCSS into CSS. I went into my CSS file and removed the source map reference -

    /*# sourceMappingURL=myCSS.map */
    

    And all of the sudden it started showing up again. Then I added it back and I can still see it. I am not sure if this is because a version of the map is cached now or not but this worked for me.

提交回复
热议问题