PHP程序员站--PHP编程开发平台
 当前位置:主页 >> 新闻咨询 >> 软件更新资讯 >> 

rCSSmin 1.0.1 发布,CSS 压缩工具

rCSSmin 1.0.1 发布,CSS 压缩工具

来源:phperz.com  作者:phper  发布时间:2012-06-04
RCSSmin 是一个 CSS 压缩工具,基于 YUI compressor 的语义实现。提升了压缩的速度和比例。 rCSSmin 1.0.1 发布了,该版本主要是增加对 Python 3.3 的支持。 以下是它的一些功能特性: Strings are kept, except that escaped newlines are stripped Space/Comments be

RCSSmin 是一个 CSS 压缩工具,基于 YUI compressor 的语义实现。提升了压缩的速度和比例。

rCSSmin 1.0.1 发布了,该版本主要是增加对 Python 3.3 的支持。

以下是它的一些功能特性:

  • Strings are kept, except that escaped newlines are stripped
  • Space/Comments before the very end or before various characters are stripped: :{});=>+],! (The colon (:) is a special case, a single space is kept if it’s outside a ruleset.)
  • Space/Comments at the very beginning or after various characters are stripped: {}(=:>+[,!
  • Optional space after unicode escapes is kept, resp. replaced by a simple space
  • whitespaces inside url() definitions are stripped
  • Comments starting with an exclamation mark (!) can be kept optionally.
  • All other comments and/or whitespace characters are replaced by a single space.
  • Multiple consecutive semicolons are reduced to one
  • The last semicolon within a ruleset is stripped
  • CSS Hacks supported:
    • IE7 hack (>/**/)
    • Mac-IE5 hack (/*\*/.../**/)
    • The boxmodelhack is supported naturally because it relies on valid CSS2 strings
    • Between :first-line and the following comma or curly brace a space is inserted. (apparently it’s needed for IE6)
    • Same for :first-letter

延伸阅读:
javascript代码压缩
php启用gzip页面压缩示例
lighttpd开启gzip压缩
Lighttpd1.4.20服务端启用GZIP压缩
压缩javascript代码的javascript代码
利用 .HTACCESS 启用 GZIP 压缩静态内容
Tags: rCSSmin   css   压缩工具  
PHP程序员站 Copyright © 2007-2010,PHPERZ.COM All Rights Reserved 粤ICP备07503606号