HTML5 使用伸缩盒子注意事项

<div class="flex-container">

  //盒子外层

  <div class="flex-item">可伸缩盒子</div>

  <div>固定值盒子</div>

</div>

注意:固定值的盒子不能使用浮动float,要设置成display:inline-block;

        可伸缩盒子不能是内联元素,如:<a href="" class="flex-item"></a>

posted @ 2015-10-15 16:52  HuilingDu  阅读(699)  评论(0编辑  收藏  举报