css - 才用fixed定位之后,flex布局的flex-grow属性就挂掉了?
PHPz
PHPz 2017-04-17 14:55:59
0
0
596


<p class="user_section">

    <ul>
        <li><a href="#" title=""><img src="../images/user_section/home.jpg" width="21" alt=""></a></li>
        <li><a href="#" title=""><img src="../images/user_section/share.jpg" width="21" alt=""></a></li>
        <li><a href="#" title=""><img src="../images/user_section/main.jpg" width="42" alt=""></a></li>
        <li><a href="#" title=""><img src="../images/user_section/cat.jpg" width="24" alt=""></a></li>
        <li><a href="#" title=""><img src="../images/user_section/mine.png" width="23" alt=""></a></li>
    </ul>
</p>



.user_section{ position: fixed;}
.user_section ul{ height: 49px; box-sizing: border-box; display: flex; flex-direction:row; justify-content:space-between; align-items:center;  background: white; border-top: 1px solid #e6e6e6; }
.user_section li{ flex-grow:1}
PHPz
PHPz

学习是最好的投资!

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!