当前位置:网站首页>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;
}边栏推荐
- Latex 编译报错 I found no \bibstyle & \bibdata & \citation command
- Thread hierarchy in CUDA
- sprintf_s的使用方法
- Latex compiles Chinese in vscode and solves the problem of using Chinese path
- DeprecationWarning: . ix is deprecated. Please use. loc for label based indexing or. iloc for positi
- web自动化切换窗口时报错“list“ object is not callable
- Automation - when Jenkins pipline executes the nodejs command, it prompts node: command not found
- Redis - big key problem
- How to try catch statements that return promise objects in JS
- Usage of map and foreach in JS
猜你喜欢

The default Google browser cannot open the link (clicking the hyperlink does not respond)

Redis - big key problem

js中正则表达式的使用

PgSQL学习笔记

Solution to the black screen of win computer screenshot

Pytest (2) mark function

How to try catch statements that return promise objects in JS

Win10: add or delete boot items, and add user-defined boot files to boot items

Cglib agent - Code enhancement test

Latex 报错 LaTeX Error: The font size command \normalsize is not defined问题解决
随机推荐
Self study table Au
AWD learning
Vector types and variables built in CUDA
FE - Weex 使用简单封装数据加载插件为全局加载方法
How to try catch statements that return promise objects in JS
selenium的web自动化中常用的js-修改元素属性翻页
sprintf_s的使用方法
Android - Kotlin 下使用 Room 遇到 There are multiple good constructors and Room will ... 问题
NodeJs - Express 中间件修改 Header: TypeError [ERR_INVALID_CHAR]: Invalid character in header content
FE - Eggjs 结合 Typeorm 出现连接不了数据库
2020-9-23 QT的定时器Qtimer类的使用。
DeprecationWarning: .ix is deprecated. Please use.loc for label based indexing or.iloc for positi
Flask migrate cannot detect db String() equal length change
Asynchronous data copy in CUDA
AWD学习
automation - Jenkins pipline 执行 nodejs 命令时,提示 node: command not found
pytest(2) mark功能
代码技巧——Controller参数注解@RequestParam
Latex compilation error I found no \bibstyle &\bibdata &\citation command
selenium+msedgedriver+edge浏览器安装驱动的坑