开发者

CSS - How to remove comments and make CSS one line

开发者 https://www.devze.com 2023-01-13 13:38 出处:网络
I would like to know how to remove all comments in CSS file and make all rules into one line. I do have acc开发者_如何学编程ess to Dreamweaver CS4.

I would like to know how to remove all comments in CSS file and make all rules into one line.

I do have acc开发者_如何学编程ess to Dreamweaver CS4.

Thank you


http://developer.yahoo.com/yui/compressor/


Here's another one: CSS Compressor


if you can run PHP, you can do it one of these ways. benefit of keeping the code readable for yourself and only on rendering it is minified.

http://www.catswhocode.com/blog/3-ways-to-compress-css-files-using-php

you also have the YUI compressor: http://refresh-sf.com/yui/

also look up the minify project. It combines multiple CSS and JS files and minifies them as well.


YUI compressor does CSS as well as JS.


Google gave me this: CSSCompressor.

See also “CSS Minimzer ?” on StackOverflow.

0

精彩评论

暂无评论...
验证码 换一张
取 消