两个宽度不固定div同一行

css

 .add-not-examine-content-p{
            font-size: .3rem;
            font-family: "PingFang-SC-Medium";
            line-height: .54rem;
            padding: 0 .3rem ;
            display: flex;
        }
        .add-not-examine-content-p-left{
            color: #333333;
            white-space: nowrap;  //只显示一行
        }
        .add-not-examine-content-p-right{
            color: #666666;
        }

html

<div class="add-not-examine-content-p">
        <div class="add-not-examine-content-p-left">江苏省三部:</div>
        <div class="add-not-examine-content-p-right">主会场应报30人,已报22人;分会场应报10人,已报10人</div>
    </div>

 

posted @ 2019-09-09 11:54  万里冰封  阅读(552)  评论(0编辑  收藏  举报