您的位置:首页 > Web前端 > CSS

html段落开头空两格---css技巧text-indent

2016-10-26 13:43 951 查看
<p style="text-indent:2em;">你的文章内容!</p>


实例:

<div class="context"><p>第一段</p><p> 第二段</p></div>


.context p{
text-align: justify; text-justify: inter-ideograph; text-indent: 2em;
}


其中text-align:justify; text-justify:inter-ideograph;设置文字两端对齐, text-indent:2em;设置文字首行缩进

取消首行缩进

<p style="text-indent:0;"></p>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  html 实例 首行缩进