如何找到哪些CSS文件用于当前页面 [英] How to find which CSS files are used for current page

查看:99
本文介绍了如何找到哪些CSS文件用于当前页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网页上有很多CSS文件。但是很多这些文件不被样式使用。是否可以确定页面使用哪些文件以及哪些文件不是。



提前感谢。

解决方案

使用 http://getfirebug.com/ 调试此页面。



当查看css时,它将引用使用哪个样式表。



例如:



从截图中可以看到,当使用Firebug时,它在蓝色文本中显示该页面使用 style.css 样式表。 / p>

>



在Firebug中的树下工作,只需将鼠标悬停在元素上,查看使用的样式表。


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.

Thanks in advance.

解决方案

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.

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

这篇关于如何找到哪些CSS文件用于当前页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆