什么工具可以分析我的网站和报告未使用/不需要的CSS? [英] What tool can analyze my site and report on unused / unneeded CSS?

查看:151
本文介绍了什么工具可以分析我的网站和报告未使用/不需要的CSS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何找到一个早期的方式,这个CSS类被使用或不在网站?



like -


$ b





$ b

类或ID正在网页中使用?



exe:

  .textstyle4 {
font:normal 12px Arial,Helvetica,sans-serif;
color:#777;
}

我想知道在我的整个网站使用这种CSS样式?



这是一个示例。

解决方案

firefox做我想要的是什么:
https:/ /addons.mozilla.org/en-US/firefox/addon/10704/


how can i find in a early way that this css class is being used or not in website ?

like-

style property that i write in my css is being used or not?

and

class or id is being used in webpage?

exe:

.textstyle4{
    font:normal 12px Arial, Helvetica, sans-serif ;
    color:#777;
}

i want to know in my whole website where this css style is being used?

this is an example.

解决方案

The CSS Usage addon for firefox does what I think you are looking for: https://addons.mozilla.org/en-US/firefox/addon/10704/

这篇关于什么工具可以分析我的网站和报告未使用/不需要的CSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆