当前位置:网站首页>Flex three column layout
Flex three column layout
2022-07-26 08:13:00 【MonsterQy】
background
Lift three columns
Everyone should think of the layout : Left and right fixed width and height , Adaptive in the middle ( For example, the Grail layout 、 Double wing layout …) But in fact, sometimes in projects, we often encounter another kind of three column layout : Fixed width and height in the middle 、 Left right adaptive Three column layout page . The implementation of the first type of three column layout is diverse , But since css3 In the flex After the layout , adopt flex The realization of the layout is widely praised .
Realization :
The first kind of flex The implementation code is as follows ( Left and right fixed width and height , Adaptive in the middle ):
html structure :
<div class='wrap'>
<div class='left'></div>
<div class='center'></div>
<div class='right'></div>
</div>
css Code :
.wrap{
display:flex;
}
.left,.right{
flex-grow: 1;
}
.center{
width:1200px;
}
The second kind of flex The implementation code is as follows ( Fixed width and height in the middle 、 Left right adaptive ):
html structure :
<div class='wrap'>
<div class='left'></div>
<div class='center'></div>
<div class='right'></div>
</div>
css Code :
.wrap{
display:flex;
}
.left,{
order: -1;
flex: 0 0 100px;
}
.right{
flex: 0 0 100px;
}
.center{
flex-grow: 1;
}
summary :
flex The core point of realizing three column responsiveness in layout is to respond to those who want to have responsive characteristics div Set up flex-grow:;
边栏推荐
- How WPS sets page headers page by page
- Dev gridcontrol captures key events
- 2W word detailed data Lake: concept, characteristics, architecture and cases
- 万字长文 | 深入理解 OpenFeign 的架构原理
- One click deployment lamp and LNMP architecture
- Software engineering -- dental clinic -- demand acquisition
- Burp suite Chapter 6 how to use burp spider
- vscode国内的镜像服务器加速
- Traversal mode of list, set, map, queue, deque, stack
- 2022-07-14 group 5 Gu Xiangquan's learning notes day07
猜你喜欢

Burp suite Chapter 7 how to use burp scanner

JSP implicit object servlet object

外卖小哥,才是这个社会最大的托底

IDEA settings设置快捷键实现字符串中的英文字母转大小写

OSPF总结
![[fastjson1.2.24 deserialization vulnerability principle code analysis]](/img/14/8f6a75fe5f06c19eeff9c7204979c3.png)
[fastjson1.2.24 deserialization vulnerability principle code analysis]

一点一点理解微服务

An empirical study on urban unemployment in Guangxi (Macroeconomics)

【EndNote】文献模板编排语法详解

Burp Suite-第九章 如何使用Burp Repeater
随机推荐
为啥谷歌的内部工具不适合你?
随机分布学习笔记
One click deployment lamp and LNMP architecture
C# WinForm中PreviewKeyDown、KeyDown、KeyPress、KeyUp区别与联系
第三天作业
Brief introduction to XML
Ten thousand words long article | deeply understand the architecture principle of openfeign
The difference between LinkedList and ArrayList
JSP action -- usebean action
Share high voltage ultra low noise LDO test results
C# 获取选择文件信息
2022/7/11 exam summary
matplotlib学习笔记
ORACLE 官方文档
【EndNote】文献类型与文献类型缩写汇编
Template summary
一点一点理解微服务
Introduction to arrays -- array
咱就是来聊聊并发编程的三大核心问题。
A clear summary and configuration example of GPON has been highlighted