【发布时间】:2014-06-19 08:33:32
【问题描述】:
我最近下载了一个 css 文件,不小心将其格式化为:
.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:"";line-
height:0}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-
shadow:none;background-color:transparent;border:0}
大约 10,000 行。
如何删除所有空格,使其看起来像:
.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:"";line-height:0}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}
例如。
【问题讨论】:
-
使用记事本++。编辑 --> 行操作 --> 删除空行。
标签: css whitespace space