css 文本平均分布

鱼满舱

关注

阅读 63

2022-03-10

<div class="itemLeft">盒子</div>
   
    .itemLeft {
        width:100px
        padding-right:10px;
        margin-right: 10px;
        position: relative;
        text-align-last: justify;
        /*ie文本两端对齐*/
        text-align: justify;
        text-justify: inter-ideograph;
    }
    

    .itemLeft::after {
        content: ':';
        display: block;
        position: absolute;
        top: 0;
        right: 0;
    }

在这里插入图片描述

精彩评论(0)

0 0 举报