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

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

问题描述

我在页面上有很多的CSS文件。但是很多这些文件中的未使用的样式。是有可能确定哪些文件是由页中使用并且不

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.

先谢谢了。

推荐答案

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

当它引用会使用哪个样式的CSS寻找。

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

例如:

您可以从使用​​Firebug时,它显示该页面使用的style.css 样式的蓝色文本看到的截图。

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.

工作下来Firebug的树,只需将鼠标悬停在元素和看到的都是使用的样式表。

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

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

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