How to find which CSS files are used for current page

前端 未结 7 631
小鲜肉
小鲜肉 2021-01-12 02:07

I have a lot of CSS files on the page. But a lot of these files are not used by styles. Is it possible to determine which files are used by page and which not.

相关标签:
7条回答
  • 2021-01-12 02:42

    You can do one thing :

    1. open the website in Firefox

    2. Use firebug to point some control on which you want to see the applied classes.

    3. In the html source code in firebug , you can find the applied css classes on a particular control.

    4. Find those classes in your CSS files.

    5. Repeat this process for all the controls of the webpage.

    Now you can remove those CSS files that are not used on that web page.

    Thanks.

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