How to find which CSS files are used for current page

前端 未结 7 632
小鲜肉
小鲜肉 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:31

    Use http://getfirebug.com/ to debug the page.

    When looking at the css it will reference which stylesheet is used.

    For example:

    You can see from the screenshot that when using Firebug it shows in the blue text that the page is using the style.css stylesheet.

    enter image description here

    Work down the tree in Firebug and simply hover over your elements and see which stylesheets are used.

提交回复
热议问题