如何在网站中找到未使用的图片和CSS样式? [英] How can I find unused images and CSS styles in a website?
问题描述
有没有工具或方法(试验和错误除外)我可以用来找到未使用的图像文件?
Is there a tool or methodology (other than trial and error) I can use to find unused image files? How about CSS declarations for ID's and Classes that don't even exist in the site?
似乎可能有一种方法,只是蜘蛛的网站,配置文件,
It seems like there might be a way to just spider the site, profile it, and see which images and styles are never loaded.
推荐答案
有一个Firefox扩展,可以在页面上查找未使用的CSS选择器。它有一个选项来蜘蛛整个网站。版本3.01应适用于较新版本的Firefox。
There's a Firefox extension that finds unused CSS selectors on a page. It has an option to spider the whole site. Version 3.01 should work with newer versions of Firefox.
https://addons.mozilla.org/en-US/firefox/addon/dust-me-selectors/
这里是另一个选项。
https://addons.mozilla.org/en-US/firefox/addon/css-usage/
这篇关于如何在网站中找到未使用的图片和CSS样式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!