jianghu52

有没有这样一种工具或者脚本,可以自动整理 css 文件的。

  •  
  •   jianghu52 · Jun 4, 2014 · 3825 views
    This topic created in 4551 days ago, the information mentioned may be changed or developed.
    最近在扒一个富文本的工具,bootstrap-wysiwyg,里面引用了4个css。外带我自己适用的css。一共是5个,里面冲突的东西非常多。我现在页面已经调整完了。现在想整理css。
    我现在用的是一种很苦逼的方式,在chrome下,按f12,一个控件一个控件的看他属于哪个css。然后对比5个css。提出我需要的css。
    不知道有没有这么一种工具,可以直接将页面中的css提取出来,或者脚本也行。
    6 replies  •  2014-06-04 15:18:23 +08:00
    lijsh
    lijsh
    Jun 4, 2014 via Android
    1
    清除未应用css的工具倒是有,一个grunt插件
    justfindu
    justfindu
    Jun 4, 2014
    2
    我用的也是bootstrap-wysiwyg. 但是没有引用CSS. 我只加载了bootstrap. 还有js就可以使用了
    momou
    momou
    Jun 4, 2014
    3
    曾经找了很久,最后还是手工做的。。。
    iscraft
    iscraft
    Jun 4, 2014
    4
    chrome F12 audits
    loading
    loading
    Jun 4, 2014 via iPhone
    5
    从开始用bootstrap的时候就要准备将会有大量无用属性……
    jsonline
    jsonline
    Jun 4, 2014 via Android
    6
    no way
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1673 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 16:21 · PVG 00:21 · LAX 08:21 · JFK 11:21
    ♥ Do have faith in what you're doing.