Somnath MulukPratik Kothari提出了一个问题：find unused images, css rules, js script blocks [closed]，或许与您遇到的问题类似。
回答者CommunitySomnath Muluk给出了该问题的处理方式：Unused CSS
Take a look at the Firefox extension Dust-Me at http://www.sitepoint.com/dustmeselectors/.
Google Chrome has a website auditing tool in their developer console.
Also I found this site for removing unused css - http://unused-css.com/ . Type the url of a site and you will get a list of CSS selectors. For each selector, a number indicates how many times a selector is used. This service has a few limitations. The @import statement is not supported. You can't configure and download the new clean CSS file.
CSSESS is a bookmarklet that helps you find unused CSS selectors on any site. This tool is pretty easy to use but it won't let you configure and download clean CSS files. It will only list unused CSS files.
- How Do I Make a Bash Script To Find Unused Images in a Project?