.classname{-ms-filter:"alpha(opacity=80)";filter:alpha(opacity=80)}
去除多余引号
Before:
@import url("mod-1.css"); @import url('mod-2.css');
After:
@import url(mod-1.css); @import url(mod-2.css);
Before:
.classname{ background: url("img/icon.png"); } .classname{ background: url('img/icon.png'); }
After:
.classname{background:url(img/icon.png)} .classname{background:url(img/icon.png)}
不影响正常的引号
Before:
.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden;}
After:
.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}
对HACK的影响支持常用HACK
Before:
#element { width: 1px; width: 2px9; *width: 3px; #width: 3px; _width: 4px; }
After:
#element{width:1px;width:2px9;*width:3px;#width:3px;_width:4px}
html >/**/ body p { color: blue; }
#elem { width: 100px; /* IE */ voice-family: ""}""; voice-family:inherit; width: 200px; /* others */ }