当前位置:网站首页>Flex application: realize two rows and five columns of data, self-adaptive
Flex application: realize two rows and five columns of data, self-adaptive
2022-06-29 01:50:00 【The world that I'm so different from you】
Some of the requirements for a page are as follows : Show ten buttons

In order not to calculate the length , Don't use float, Through a simple way to achieve Namely flex.flex It's very easy to implement .
html:

css:
.bottom {
position: absolute;
bottom: 270px;
width: 1080px;
height: 320px;
margin: 0 auto;
z-index: 2;
}
.bottom ul {
display: flex;
flex-wrap: wrap;
width: 1020px;
margin: auto;
}
.bottom ul li {
list-style: none;
flex: 1 0 20%;
width: 154px;
height: 139px;
margin-top: 20px;
background: url(images/notcheck.png) no-repeat;
color: #8ed6ff;
}
.notcheckli {
background: url(images/notcheck.png) no-repeat;
color: #8ed6ff;
}flex-wrap: wrap; It means a line break .
flex: 1 0 20%; 20% It means every li Take up the width of .
Specifically flex Related knowledge : An article to understand flex Layout - Listening to the wind is the wind - Blog Garden
边栏推荐
- 直播预告|SQL也能玩转工业级机器学习?MLOps meetup V3带你一探究竟!
- Uniapp notes
- Research on VB multi-layer firewall technology - state detection
- Analysis of advantages and disadvantages of environment encryption and transparent encryption
- TiFlash 面向编译器的自动向量化加速
- NOIP2006-2018 提高组 初赛试题完善程序题 CSP-S 2019 2020 初赛试题完善程序题
- Scala Foundation (3): Operators and Process Control
- [understanding of opportunity -33]: seeing is not necessarily true. Most of the time, "seeing is false"
- How to prevent virus
- I'd like to ask you, where can I open an account in Zhongshan? Is it safe to open an account online?
猜你喜欢

栈的增删查改---动态内存
![[understanding of opportunity -33]: seeing is not necessarily true. Most of the time,](/img/60/703a5bc3038d28bcf812415032f240.jpg)
[understanding of opportunity -33]: seeing is not necessarily true. Most of the time, "seeing is false"

TypeScript(5)类、继承、多态

Docker中安裝Oracle數據庫

如何成为一名高级数字 IC 设计工程师(4-5)脚本篇:Shell 脚本实现的文件比较操作

When you complain about the roll, others have quietly begun to prepare for the golden three silver four

如何成为一名高级数字 IC 设计工程师(4-2)脚本篇:Verilog HDL 代码实现的文件读写操作

Magic Quadrant of motianlun's 2021 China Database

Kuboardv3 and monitoring kit installation

TypeScript(4)接口
随机推荐
如何成为一名高级数字 IC 设计工程师(6-4)数字 IC 验证篇:测试点分解
Using autogluon to forecast house price
Introduction to UE gameplay 44 (animation import FBX and production standard)
[learn FPGA programming from scratch -50]: Vision - how are chips made? The thirteen steps of chip manufacturing.
Flask-SQLAlchemy的基本使用
Oculusrifts and unity UI interaction (1) - Overview
Edrawmax mind map, edrawmax organization chart
PHP hospital network reservation management system source code, hospital consultation reservation registration OA system (commercial or graduation design)
okcc呼叫中心的计费方式哪个最好
Kuboardv3 and monitoring kit installation
How to become a senior digital IC Design Engineer (6-6) digital IC Verification: system level simulation
Database - optimizer
如何成为一名高级数字 IC 设计工程师(3-5)工具篇:SpyGlass 技术
Near's storage stacking
[image detection] recognition of the front and back of a coin based on texture features with matlab code attached
How to encrypt the device
TypeScript(6)函数
How to use PN junction to measure temperature?
Typescript (5) class, inheritance, polymorphism
HBuilder左侧工具栏不见了