如何在网站中找到未使用的图像和CSS样式?
Is there method (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?
有没有方法(试验和错误除外)我可以用来查找未使用的图像文件?如果网站中甚至不存在ID和类的CSS声明怎么样?
It seems like there might be a way to write a script that scans the site, profile it, and see which images and styles are never loaded.
似乎可能有一种方法可以编写一个脚本来扫描网站,对其进行分析,并查看从未加载的图像和样式。
14 个解决方案
#1
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.
有一个Firefox扩展,可以在页面上找到未使用的CSS选择器。它有一个蜘蛛整个网站的选项。版本3.01应该适用于较新版本的Firefox。
https://addons.mozilla.org/en-US/firefox/addon/dust-me-selectors/
And here's another option.
这是另一种选择。
https://addons.mozilla.org/en-US/firefox/addon/css-usage/
更多相关文章
- 像那种以.html为后缀名的网站使用的是什么技术啊?
- 如何使用jQuery在我的网站演示中自动填写表单,好像真人正在打字?
- 网站设计思想
- 如何让我的固定宽度移动网站始终显示“完全放大”?
- 针对不同的分辨率优化网站
- php学习笔记四:使用 xampp-部署php网站
- 有没有办法从指定的网站找到某种颜色的图像?
- php网站 手机归属地查询接口
- PHP 网站保存快捷方式的实现代码