简体   繁体   English

用于检查未使用的CSS选择器的工具?

[英]Tool for checking unused CSS selectors?

I know there is an extension called Dust-Me Selectors for Firefox and also that it doesn't look at dynamic HTML generated by JavaScript. 我知道有一个名为Dust-Me Selectors for Firefox的扩展程序,它也没有查看JavaScript生成的动态HTML。

I'm looking for tool(s) that can identify all unused selectors from a stylesheet, attached to several pages, with all the JavaScript running and checking selectors? 我正在寻找可以从样式表中识别所有未使用的选择器的工具,附加到多个页面,所有JavaScript都在运行并检查选择器? The only option I know right now for this is manually checking files and finding unused selectors :( 我现在知道的唯一选择是手动检查文件并找到未使用的选择器:(

In IDE's - I believe NetBeans provides a warning message when writing Java code, if a library is not under use. 在IDE中 - 我相信NetBeans在编写Java代码时会提供警告消息,如果库未被使用。 Without an IDE (NetBeans, Eclipse, Dreamweaver, etc) plugin to search for the selectors what are my options? 如果没有IDE(NetBeans,Eclipse,Dreamweaver等)插件来搜索选择器,我的选择是什么?

Also, is there a tool to check for unused selectors in the same file. 此外,是否有工具检查同一文件中未使用的选择器。 I mean if all the JS, HTML and CSS code is in the same file. 我的意思是如果所有JS,HTML和CSS代码都在同一个文件中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM