脚本宝典收集整理的这篇文章主要介绍了详解css3 flex弹性盒自动铺满写法,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
本文主要介绍了详解css3 flex弹性盒自动铺满写法,分享给大家,具体如下:
<style tyPE="text/css"> .flexcontainer{ width:100%; height: 100%; posITion: absolute; left:0px; top:0px; display: flex; flex-direction: column; } .flex1 { width: 100%; height: 8rem; float: left; background: #f00; } .flex2 { width: 100%; height: 4rem; flex:1; float: left; background: #000; } .flex3 { width: 100%; height: 7rem; float: left; background: #ccc; } </style> <div class="flexcontainer"> <div class="flex1"></div> <div class="flex2"></div> <div class="flex3"></div> </div>
到此这篇关于详解css3 flex弹性盒自动铺满写法的文章就介绍到这了,更多相关css3 flex 自动铺满内容请搜索脚本宝典以前的文章或继续浏览下面的相关文章,希望大家以后多多支持脚本宝典!
以上是脚本宝典为你收集整理的详解css3 flex弹性盒自动铺满写法全部内容,希望文章能够帮你解决详解css3 flex弹性盒自动铺满写法所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。