BootStrap布局结构 Flex各种布局

BootStrap布局结构 Flex各种布局1 左右结构 lt div class d flex flex row style width 500px height 400px border 2px solid ae00e6 gt lt div region west class

大家好,我是讯享网,很高兴认识大家。

1、左右结构
在这里插入图片描述
讯享网

<div class="d-flex flex-row" style="width: 500px; height: 400px;border:2px solid #ae00e6"> <div region="west" class="west" style="width: 140px;"> 西 </div> <div region="center" class="center flex-fill"></div> </div> 

讯享网

在这里插入图片描述

讯享网<div class="d-flex flex-row" style="width: 500px; height: 400px;border:2px solid #ae00e6"> <div region="center" class="center flex-fill"></div> <div region="east" class="east" style="width: 140px;"></div> </div> 

2、上下结构

在这里插入图片描述

<div class="d-flex flex-column" style="width: 500px; height: 400px;border:2px solid #ae00e6"> <div region="north" class="north" style="height: 80px;"></div> <div region="center" class="center flex-fill"></div> </div> 

在这里插入图片描述

讯享网<div class="d-flex flex-column" style="width: 500px; height: 400px;border:2px solid #ae00e6"> <div region="center" class="center flex-fill"></div> <div region="south" class="south" style="height: 80px;"></div> </div> 

3、上中下
在这里插入图片描述

<div class="d-flex flex-column" style=" height: 400px;border:2px solid #ae00e6"> <div region="north" class="north" style="height: 80px;"></div> <div region="center" class="center flex-fill"></div> <div region="south" class="south" style="height: 80px;"></div> </div> 

4、左中右
在这里插入图片描述

讯享网<div class="d-flex flex-row" style=" height: 400px;border:2px solid #ae00e6"> <div region="west" class="west" style="width: 140px;"> 西 </div> <div region="center" class="center flex-fill"></div> <div region="east" class="east" style="width: 140px;"></div> </div> 

5、组合嵌套

在这里插入图片描述

<div class="d-flex flex-row" style="width: 500px; height: 400px;border:2px solid #ae00e6"> <div region="west" class="west" style="width: 140px;"> 西 </div> <div region="center" class="center flex-fill"> <div class="d-flex flex-column flex-fill" style="border:1px solid blue;height: 100%;"> <div region="north" class="north" style="height: 80px;"></div> <div region="center" class="center flex-fill"></div> </div> </div> </div> 

在这里插入图片描述

讯享网<div class="d-flex flex-row" style="width: 500px; height: 400px;border:2px solid #ae00e6"> <div region="center" class="center flex-fill"> <div class="d-flex flex-column flex-fill" style="border:1px solid blue;height: 100%;"> <div region="center" class="center flex-fill"></div> <div region="south" class="south" style="height: 80px;"></div> </div> </div> <div region="east" class="east" style="width: 140px;"></div> </div> 

在这里插入图片描述

<div class="d-flex flex-row" style="width: 500px; height: 400px;border:2px solid #ae00e6"> <div region="center" class="center flex-fill"> <div class="d-flex flex-column flex-fill" style="border:1px solid blue;height: 100%;"> <div region="north" class="north" style="height: 80px;"></div> <div region="center" class="center flex-fill"></div> <div region="south" class="south" style="height: 80px;"></div> </div> </div> <div region="east" class="east" style="width: 140px;"></div> </div> 

在这里插入图片描述

讯享网<div class="d-flex flex-row" style="width: 500px; height: 400px;border:2px solid #ae00e6"> <div region="west" class="west" style="width: 140px;"> 西 </div> <div region="center" class="center flex-fill"> <div class="d-flex flex-column flex-fill" style="border:1px solid blue;height: 100%;"> <div region="north" class="north" style="height: 80px;"></div> <div region="center" class="center flex-fill"></div> <div region="south" class="south" style="height: 80px;"></div> </div> </div> </div> 

在这里插入图片描述

<div class="d-flex flex-column" style=" height: 400px;border:2px solid #ae00e6"> <div region="north" class="north" style="height: 80px;"></div> <div region="center" class="center flex-fill d-flex flex-column"> <div class="d-flex flex-row flex-fill" style=" height: 100%;border:1px solid blue"> <div region="west" class="west" style="width: 140px;"> 西 </div> <div region="center" class="center flex-fill"></div> <div region="east" class="east" style="width: 140px;"></div> </div> </div> <div region="south" class="south" style="height: 80px;"></div> </div> 

在这里插入图片描述

讯享网<div class="d-flex flex-column" style=" height: 400px;border:2px solid #ae00e6"> <div region="center" class="center flex-fill d-flex flex-column"> <div class="d-flex flex-row flex-fill" style=" height: 100%;border:1px solid blue"> <div region="west" class="west" style="width: 140px;"> 西 </div> <div region="center" class="center flex-fill"></div> <div region="east" class="east" style="width: 140px;"></div> </div> </div> <div region="south" class="south" style="height: 80px;"></div> </div> 

在这里插入图片描述

<div class="d-flex flex-column" style=" height: 400px;border:2px solid #ae00e6"> <div region="north" class="north" style="height: 80px;"></div> <div region="center" class="center flex-fill d-flex flex-column"> <div class="d-flex flex-row flex-fill" style=" height: 100%;border:1px solid blue"> <div region="west" class="west" style="width: 140px;"> 西 </div> <div region="center" class="center flex-fill"></div> <div region="east" class="east" style="width: 140px;"></div> </div> </div> </div> 

在这里插入图片描述

讯享网<div class="d-flex flex-column" style=" height: 400px;border:2px solid #ae00e6"> <div region="north" class="north" style="height: 80px;"></div> <div region="center" class="center flex-fill d-flex flex-column"> <div class="d-flex flex-row flex-fill" style=" height: 100%;border:1px solid blue"> <div region="center" class="center flex-fill"></div> <div region="east" class="east" style="width: 140px;"></div> </div> </div> <div region="south" class="south" style="height: 80px;"></div> </div> 

原文链接:

小讯
上一篇 2025-02-18 21:46
下一篇 2025-03-12 22:44

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/40555.html