CSS 压缩工具 rCSSmin

fmms 13年前
     RCSSmin 是一个 CSS 压缩工具,基于 YUI compressor 的语义实现。提升了压缩的速度和比例。    <br />    <p>以下是它的一些功能特性:</p>    <ul class="simple">     <li>Strings are kept, except that escaped newlines are stripped</li>     <li>Space/Comments before the very end or before various characters are stripped: <tt class="docutils literal"><span class="pre">:{});=>+],!</span></tt> (The colon (<tt class="docutils literal"><span class="pre">:</span></tt>) is a special case, a single space is kept if it’s outside a ruleset.)</li>     <li>Space/Comments at the very beginning or after various characters are stripped: <tt class="docutils literal"><span class="pre">{}(=:>+[,!</span></tt></li>     <li>Optional space after unicode escapes is kept, resp. replaced by a simple space</li>     <li>whitespaces inside <tt class="docutils literal"><span class="pre">url()</span></tt> definitions are stripped</li>     <li>Comments starting with an exclamation mark (<tt class="docutils literal"><span class="pre">!</span></tt>) can be kept optionally.</li>     <li>All other comments and/or whitespace characters are replaced by a single space.</li>     <li>Multiple consecutive semicolons are reduced to one</li>     <li>The last semicolon within a ruleset is stripped</li>     <li>CSS Hacks supported:      <ul>       <li>IE7 hack (<tt class="docutils literal"><span class="pre">>/**/</span></tt>)</li>       <li>Mac-IE5 hack (<tt class="docutils literal"><span class="pre">/*\*/.../**/</span></tt>)</li>       <li>The boxmodelhack is supported naturally because it relies on valid CSS2 strings</li>       <li>Between <tt class="docutils literal"><span class="pre">:first-line</span></tt> and the following comma or curly brace a space is inserted. (apparently it’s needed for IE6)</li>       <li>Same for <tt class="docutils literal"><span class="pre">:first-letter</span></tt></li>      </ul> </li>    </ul>    <br />    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1325587796093" target="_blank">http://www.open-open.com/lib/view/home/1325587796093</a></p>