使用什么工具来比较和减少CSS样式表 [英] What tool to use to compare and reduce css style sheets
问题描述
我有一个引用css文件(style1.css)的页面(page1.html)
I have a page (page1.html) which references a css file (style1.css)
一切都很好。
我需要Page1.html来引用Style2.css
但是当我添加引用的时候,Page1.html上的一些东西就会变成。
I need Page1.html to additionally reference Style2.css However when I add the reference, some stuff on Page1.html screws up.
我如何确定它是什么关于Style2.css是导致这个问题?
一些diff工具?
一些过程?
How can I determine what it is about Style2.css that is causing this problem? Some diff Tool? Some Process?
推荐答案
Firebug 显示哪些规则被覆盖,规则来自哪个样式表。
Firebug shows you which rules are being overridden, and from which stylesheet the rules come from.
只需选择问题元素,它会显示应用于它的规则。然后可以打开/关闭它们查看效果。
Just select the problem elements and it will show you the rules applied to it. You can then toggle them on/off the see the effect.
这篇关于使用什么工具来比较和减少CSS样式表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!