0
点赞
收藏
分享

微信扫一扫

css 文本平均分布

鱼满舱 2022-03-10 阅读 63
<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 条评论