HTML段落间距调整
-
HTML p标签间距如何调整?
在HTML中,通过CSS调整标签间距主要使用margin和line-height属性: ,1. 段落间距:用margin-top/margin-bottom控制上下边距(如margin: 20px 0;) ,2. 行距:用line-height设置行高(如line-height: 1.6;) ,3. 首行缩进:text-indent属性(如text-indent: 2em;) ,示例:p { margin: 15px 0; line-height: 1.8; }