V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
tamamaxox
V2EX  ›  JavaScript

清理多余的样式的工具

  •  
  •   tamamaxox · 2014-01-05 11:00:59 +08:00 · 3158 次点击
    这是一个创建于 3756 天前的主题,其中的信息可能已经有所发展或是发生改变。
    https://github.com/geuis/helium-CSS

    没有用过,据说不支持ie6~7,分享给有需要的人
    8 条回复    1970-01-01 08:00:00 +08:00
    zhouzb889
        1
    zhouzb889  
       2014-01-05 13:26:48 +08:00
    正好需要,拿走
    babytomas
        2
    babytomas  
       2014-01-05 13:28:58 +08:00 via Android
    收藏先,刚好几个模板好多样式好麻烦
    sd4399340
        3
    sd4399340  
       2014-01-05 15:48:28 +08:00
    addy osmani 大神也写过一个类似的grunt插件
    https://github.com/addyosmani/grunt-uncss
    romoo
        4
    romoo  
       2014-01-05 17:23:05 +08:00   ❤️ 1
    一般是通过 Chrome - Dev tool - Audits 来看的。
    tamamaxox
        5
    tamamaxox  
    OP
       2014-01-05 17:53:46 +08:00
    @romoo 这个方法不错啊,一直用chrome都没有看过Audits
    crs0910
        6
    crs0910  
       2014-01-05 18:10:43 +08:00
    一跑一个页面一大堆出来。。。掩面。。。
    tamamaxox
        7
    tamamaxox  
    OP
       2014-01-05 21:05:42 +08:00
    @crs0910 仅供辅助,关键还是靠模块化管理。
    momou
        8
    momou  
       2014-01-05 23:43:41 +08:00
    多页面如何处理?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4706 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 01:09 · PVG 09:09 · LAX 18:09 · JFK 21:09
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.