CSS清洁 [英] CSS cleaner
问题描述
我接管了一家由另一家公司开发的相当复杂的网站,坦白说这是一团糟。我的一个问题是,似乎没有纪律,当写入html,所以虽然他们使用css广泛,有六个css文件和粗略的分析显示,在CSS文件中有很多样式没有被任何html引用 - 而是它们包含虚假的重新设计开始和旧的,现在冗余,样式与当前项目混合的痕迹。
I've taken over looking after a fairly complex site developed by another company, and frankly it's a mess. One of my problems is that there seems to have been no discipline when writing the html so that although they have used css extensively, there are half a dozen css files and a cursory analysis reveals that there is a significant number of styles in the css files that are not referenced by any of the html - rather they contain trail of false redesign starts and old, now redundant, styles mixed in with the current items.
真的喜欢清理所有这一切,然后向前移动。有没有任何工具,开源或其他,可以采取一堆html和css文件和交叉引用他们,以突出css中的cruft?
I'd really like to clean all this up before moving onwards. Does there exists any tool, open source or otherwise, that can take a bunch of html and css files and cross reference them so as to highlight the cruft in the css?
推荐答案
尝试打开Firefox选择器插件。
这篇关于CSS清洁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!