当前位置:网站首页>flex九宫格布局
flex九宫格布局
2022-07-02 06:23:00 【xuefankang】
效果图
html
<div class="gridBox">
<div class="cellLi">1</div>
<div class="cellLi">2</div>
<div class="cellLi">3</div>
<div class="cellLi">4</div>
<div class="cellLi">5</div>
<div class="cellLi">6</div>
<div class="cellLi">7</div>
<div class="cellLi">8</div>
<div class="cellLi">9</div>
</div>
css
.gridBox{
background-color: #f5f5f5;
overflow: hidden;
margin: 20px 0;
display: flex;
flex-wrap: wrap;
}
.cellLi{
width: calc(100% / 3);
padding: 60px 0;
text-align: center;
border: 1px solid #f5f5f5;
box-sizing: border-box;
background-color: #fff;
overflow: hidden;
}
边栏推荐
- 计算属性普通函数写法 和 set get 写法
- 构建学习tensorflow
- No process runs when querying GPU, but the video memory is occupied
- 压力测试修改解决方案
- 如何调试微信内置浏览器应用(企业号、公众号、订阅号)
- selenium+msedgedriver+edge浏览器安装驱动的坑
- Fe - use of weex development weex UI components and configuration use
- ModuleNotFoundError: No module named ‘jieba.analyse‘; ‘jieba‘ is not a package
- Eslint configuration code auto format
- sprintf_ How to use s
猜你喜欢
How to try catch statements that return promise objects in JS
There is no way to drag the win10 desktop icon (you can select it, open it, delete it, create it, etc., but you can't drag it)
代码技巧——Controller参数注解@RequestParam
js中对于返回Promise对象的语句如何try catch
No process runs when querying GPU, but the video memory is occupied
Sublime text configuring PHP compilation environment
The default Google browser cannot open the link (clicking the hyperlink does not respond)
Latex参考文献引用失败 报错 LaTeX Warning: Citation “*****” on page y undefined on input line *
实现strStr() II
Sentinel Alibaba open source traffic protection component
随机推荐
重载全局和成员new/delete
(the 100th blog) written at the end of the second year of doctor's degree -20200818
ctf三计
Record RDS troubleshooting once -- RDS capacity increases dramatically
Kotlin - verify whether the time format is yyyy MM DD hh:mm:ss
Pytest (2) mark function
CTF three count
No process runs when querying GPU, but the video memory is occupied
The intern left a big hole when he ran away and made two online problems, which made me miserable
There is no way to drag the win10 desktop icon (you can select it, open it, delete it, create it, etc., but you can't drag it)
奇葩pip install
CUDA user object
代码技巧——Controller参数注解@RequestParam
sprintf_s的使用方法
Dynamic global memory allocation and operation in CUDA
unittest. Texttestrunner does not generate TXT test reports
Error "list" object is not callable in Web automatic switching window
Win10: add or delete boot items, and add user-defined boot files to boot items
ts和js区别
selenium的web自动化中常用的js-修改元素属性翻页