了解在给定页面上使用的CSS样式 [英] Find out what CSS styles are being used on a given page

查看:122
本文介绍了了解在给定页面上使用的CSS样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含多个样式表的页面,其中大多数样式在页面中并未实际使用(已弃用等)。我想导出新的样式表,其中包含实际使用的页面上的所有样式。

I have a page that contains multiple stylesheets and a large majority of the styles in it aren't actually used in the page (deprecated etc). I would like to export a new stylesheet containing all styles on the page that are actually in use. Is there anyway to do this?

推荐答案

我认为这个网站做了你想要的: CSS Trashman 。它需要一段时间来运行,但它的工作原理。它将我的个人网站的CSS从3.31 KB减少到了402字节。

I think this website does what you want: CSS Trashman. It takes a little while to run, but it works. It reduced my personal site's CSS from 3.31 KB to 402 Bytes.

如果你宁愿使用命令行工具, CSS Rationator 支持CSS Trashman。

If you would rather use a command-line tool, CSS Rationator powers CSS Trashman.

这篇关于了解在给定页面上使用的CSS样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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