当前位置:网站首页>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;
}边栏推荐
- After reading useful blogs
- unittest.TextTestRunner不生成txt测试报告
- The use of regular expressions in JS
- Latex 编译报错 I found no \bibstyle & \bibdata & \citation command
- FE - Weex 使用简单封装数据加载插件为全局加载方法
- js中map和forEach的用法
- Idea announced a new default UI, which is too refreshing (including the application link)
- 如何调试微信内置浏览器应用(企业号、公众号、订阅号)
- AWD学习
- Kali latest update Guide
猜你喜欢

ZZQ的博客目录--更新于20210601

Unexpected inconsistency caused by abnormal power failure; Run fsck manually problem resolved

js中map和forEach的用法

Redis——热点key问题

Win10网络图标消失,网络图标变成灰色,打开网络设置闪退等问题解决

默认google浏览器打不开链接(点击超链接没有反应)

The use of regular expressions in JS

js中对于返回Promise对象的语句如何try catch

Cglib agent - Code enhancement test

unittest. Texttestrunner does not generate TXT test reports
随机推荐
Redis - big key problem
ModuleNotFoundError: No module named ‘jieba.analyse‘; ‘jieba‘ is not a package
Linux MySQL 5.6.51 community generic installation tutorial
VSCODE 安装LATEX环境,参数配置,常见问题解决
Eggjs -typeorm treeenity practice
There are multiple good constructors and room will problem
(第一百篇BLOG)写于博士二年级结束-20200818
Summary of advertisement business bug replay
20210306转载如何使TextEdit有背景图片
(the 100th blog) written at the end of the second year of doctor's degree -20200818
Win电脑截图黑屏解决办法
pytest(3)parametrize参数化
Redis——热点key问题
Win10:添加或者删除开机启动项,在开机启动项中添加在用户自定义的启动文件
Loops in tensorrt
selenium备忘录:selenium\webdriver\remote\remote_connection.py:374: ResourceWarning: unclosed<xxxx>解决办法
Log (common log framework)
Automation - when Jenkins pipline executes the nodejs command, it prompts node: command not found
AWD learning
Fe - weex uses a simple encapsulated data loading plug-in as the global loading method