国产成人精品无码青草_亚洲国产美女精品久久久久∴_欧美人与鲁交大毛片免费_国产果冻豆传媒麻婆精东

15158846557 在線咨詢 在線咨詢
15158846557 在線咨詢
所在位置: 首頁 > 營銷資訊 > 網(wǎng)站運營 > 詳解css3 flex彈性盒自動鋪滿寫法

詳解css3 flex彈性盒自動鋪滿寫法

時間:2024-02-24 03:15:01 | 來源:網(wǎng)站運營

時間:2024-02-24 03:15:01 來源:網(wǎng)站運營

詳解css3 flex彈性盒自動鋪滿寫法:

這篇文章主要介紹了詳解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 自動鋪滿內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持腳本之家!

文章來源:腳本之家,原文鏈接:https://www.jb51.net/css/745503.html

關鍵詞:寫法,彈性

74
73
25
news

版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。

為了最佳展示效果,本站不支持IE9及以下版本的瀏覽器,建議您使用谷歌Chrome瀏覽器。 點擊下載Chrome瀏覽器
關閉