本文介绍了如何使代码更整洁在Dreamweaver?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有任何快速和简单的方法来转换代码从这样:

 < style& 
element {property:value;属性:value;
property:value;
property:value; }

element {property:value;属性:value;属性:value;属性:value;属性:value; }
element {property:value;属性:value;属性:value;
property:value;
property:value;属性:value;
}
< / style>
< div>
content content content< div> content< / div>
< / div>

这样很漂亮:

 < style> 

element {property:value;属性:value;属性:value;属性:value; }

element {property:value;属性:value;属性:value;属性:value; }

element {property:value;属性:value;属性:value;属性:value; }

< / style>

< div>
content content content
< div>
content
< / div>
< / div>

它也会使生活更容易,如果有一个按钮,以css按字母顺序

解决方案

查看类似的问题/答案:








我没有安装Dreamweaver,但根据,以下命令应该可用:




  • 命令>应用格式

  • 命令>清除HTML


is there any quick and easy way to convert code from looking like this:

<style>
element { property:value; property:value; 
property:value; 
property:value; }

element { property:value; property:value; property:value; property:value; property:value; }
element {property:value; property:value; property:value; 
property:value; 
property:value; property:value; 
}
</style>
<div>
content content content <div> content </div>
  </div>

to being nice and neat like this:

<style>

element { property:value; property:value; property:value; property:value; }

element { property:value; property:value; property:value; property:value; }

element { property:value; property:value; property:value; property:value; }

</style>

<div>
content content content 
      <div> 
          content 
      </div>
</div>

it would also make life easier if there was a button to put css in alphabetical order

解决方案

See these similar questions / answers:

I do not have Dreamweaver installed myself, but according to this answer the following commands should be available:

  • Commands > Apply Formatting
  • Commands > Clean up HTML

这篇关于如何使代码更整洁在Dreamweaver?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-25 05:30