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;
    /*左右对齐*/
}

posted on 2009-07-11 10:44  猎风  阅读(1972)  评论(0编辑  收藏  举报