Dreamweaver如何设置行高

字与字之间的行间距怎么设置?

一般有三种方式:
1、采用margin-top属性,这样向上的行间距为10px。如
<p style=" margin-top:10px;">123456</p>
<p style=" margin-top:10px;">123456</p>
<p style=" margin-top:10px;">123456</p>

2、采用margin-bottom属性,这样向下的行间距为10px。如
<p style=" margin-bottom:10px;">123456</p>
<p style=" margin-bottom:10px;">123456</p>
<p style=" margin-bottom:10px;">123456</p>

3、使用line-height:20px;如
<p style="line-height:10px;">123456</p>
<p style=" line-height:10px;">123456</p>
<p style=" line-height:10px;">123456</p>
温馨提示:答案为网友推荐,仅供参考
第1个回答  2019-12-08
在 安装目录找到所在主题的样式文件 main.less,添加line-height:150%
/* Code Styling */

.CodeMirror, .CodeMirror-scroll {
background-color: @background;
color: @foreground;
line-height: 150%;
}
第2个回答  2008-01-29
用段落格式强行调整本回答被提问者采纳