2013-04-10 92 views
3

我有很大的CSS文件,其中包含CSS规则的格式如下:格式化CSS样式

.rounded-block 
{ 
    border: 1px solid #c0c0c0; 
    width: 500px; 
    margin: 15px 0 15px 0; 
} 

我需要格式化这个文件中像这样

.rounded-block{border: 1px solid #c0c0c0;width: 500px;margin: 15px 0 15px 0;} 

我怎样才能做到这一点我能做到这一点?在视觉工作室?

编辑: 我需要其他的规则将是另一条线

.rounded-block{border: 1px solid #c0c0c0;width: 500px;margin: 15px 0 15px 0;} 
.anotherrule{margin: 15px;} 
+5

http://cssminifier.com/ – 2013-04-10 11:55:42

+0

此cssminifier将我的所有样式都汇总在一行中,但我需要其他规则将在另一行 – cosset 2013-04-10 12:08:02

回答

1

检查这些网址的CSS美化和优化:

cssbeautify
fwpolice

在那里,你可以定义你自己的规则:

codebeautifier

+0

谢谢。 codebeautifier帮助了我 – cosset 2013-04-10 12:11:40