文本对齐text-align:justify实现文字两端对齐

html:

<div class="father">对齐<span></span></div>
<div class="father">文本对齐<span></span></div>

css:

.father{
    width:200px;
    text-align:justify;
 }
.father span{
    display:inline-block;
    padding-left:100%;
}

猜你喜欢

转载自blog.csdn.net/sxy323/article/details/132507907
今日推荐