CSS实现段落首行缩进、1.5倍行距、左右对齐
.text-content {
font-size: 15px;
text-indent: 30px;
/*段落首行缩进,text-indent的值为font-size的2倍,相当于缩进2个汉字*/
line-height: 22px;
/*line-height的值为font-size的1.5倍,即1.5倍行距,使用line-height: 1.5效果相同;*/
text-align:justify;
/*左右对齐*/
}
浙公网安备 33010602011771号