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/

更多相关文章

  1. 像那种以.html为后缀名的网站使用的是什么技术啊?
  2. 如何使用jQuery在我的网站演示中自动填写表单,好像真人正在打字?
  3. 网站设计思想
  4. 如何让我的固定宽度移动网站始终显示“完全放大”?
  5. 针对不同的分辨率优化网站
  6. php学习笔记四:使用 xampp-部署php网站
  7. 有没有办法从指定的网站找到某种颜色的图像?
  8. php网站 手机归属地查询接口
  9. PHP 网站保存快捷方式的实现代码

随机推荐

  1. JS小Demo实战之今天外卖点什么?(三)
  2. 使用jquery在textarea中的颜色代码
  3. JSON/Jave不更新innerHTML onClick事件。
  4. 无法使用jquery将活动类添加到当前选定的
  5. C#Razor - 显示注释值,其中循环值等于sele
  6. JavaScript中的事件详解
  7. 如何使用jquery或JavaScript在一次浏览中
  8. javascript小实例,PC网页里的拖拽
  9. 深究js(三)——变量
  10. 尝试用jQuery创建旋转木马效果