Removing unused CSS from website code

后端 未结 2 450
半阙折子戏
半阙折子戏 2021-01-17 09:50

I am currently modifying a website template which I have found for free on the web.

When i remove, for instance, a div from the code, the CSS for it rem

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-17 10:40

    You can get pretty close to what you are asking for with the Google Chrome's Audit tab under Developer Tools. It does not remove unused CSS, but it will show you what CSS rules are not being used.

    Observe: enter image description here

提交回复
热议问题