【问题标题】:How to make code neater in Dreamweaver?如何让 Dreamweaver 中的代码更整洁?
【发布时间】:2012-09-09 15:30:24
【问题描述】:

是否有任何快速简便的方法可以将代码从如下所示转换:

<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>

要像这样漂亮整洁:

<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>

如果有一个按钮可以按字母顺序排列 css 也会让生活更轻松

【问题讨论】:

标签: css dreamweaver


【解决方案1】:

查看这些类似的问题/答案:

我自己没有安装 Dreamweaver,但根据this answer 应该可以使用以下命令:

  • 命令 > 应用格式
  • 命令 > 清理 HTML

【讨论】:

    【解决方案2】:

    试试:

    Command -> Apply Source Formatting
    

    【讨论】:

      猜你喜欢
      • 2015-04-22
      • 1970-01-01
      • 2021-12-07
      • 2013-08-21
      • 1970-01-01
      • 1970-01-01
      • 2010-10-27
      • 1970-01-01
      • 2011-10-17
      相关资源
      最近更新 更多