Alineación de texto text-align:justify realiza la alineación del texto en ambos extremos

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%;
}

Supongo que te gusta

Origin blog.csdn.net/sxy323/article/details/132507907
Recomendado
Clasificación