当前位置:网站首页>Grid layout frequently asked interview questions
Grid layout frequently asked interview questions
2022-07-25 19:20:00 【MOAN.】
Grid The benefits of grid layout are no less than Flex, It can quickly divide the layout into desired modules , and flex The opening method is the same , A word of display:grid You can start
Here we will directly introduce the portal , You can read teacher Ruan Yifeng's blog , Not only Flex The flexible layout is well written ,Grid The grid layout is also very Nice
CSS Grid Grid layout tutorial - Ruan Yifeng's Weblog (ruanyifeng.com)
Today, I want to share with you a few words about Grid Frequent high-frequency interview questions
1 Grid How to achieve something similar to flex:row-reverse The effect of
adopt grid-auto-flow and direction
grid-auto-flow:row|column|dense This attribute specifies that grid How to sort the elements inside the container of the layout
direction:rt|Irt Specify text The horizontal direction of the table column
2. Box trisection
1.Grid
.grid-container {
display: grid;
grid-template-columns: 1fr 1fr 1fr(fr=fraction);
gap: 1rem;
}
[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-MthSqgDx-1657715104306)(https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/8612c42a8a024db884b28f9dcf36197a~tplv-k3u1fbpfcp-watermark.image?)]
According to the latest standards , Of the above three property names grid- The prefix has been removed ,grid-column-gap and grid-row-gap It's written in column-gap and row-gap,grid-gap It's written in gap.
2.flex
.flex-container {
display: flex;
flex-wrap: wrap;
// gap: 1rem;
.item {
flex: 0 0 calc(100% / 3);
}
}
3.Grid The advantages of
Flex The layout is the axis layout , Only... Can be specified " project " For the position of the axis , It can be seen as a one-dimensional layout .
Grid The layout is to divide the container into " That's ok " and " Column ", Generate cells , Then designate " Where the project is " Cells of , It can be seen as a two-dimensional layout . Grid The layout is much better than Flex Strong layout
Refer to the blog from Shanyue , Really a good helper for interview
【Q506】Grid The layout is similar to how to realize flex: row-reverse | css High frequency interview questions | Interview questions for large factories one a day (shanyue.tech)
Reprint : Welcome to reprint , But without the author's consent , This statement must be retained ;
If you have questions, you can kick me in the comment area
边栏推荐
- Hongmeng - Damiao computing Sketchpad - VIDEO
- Fearless of high temperature and rainstorm, how can Youfu network protect you from worry?
- 【云原生之kubernetes】kubernetes集群下Secret存储对象的管理
- 基础乐理--配置和弦
- MES管理系统有什么应用价值
- SQL Server 2019 安装教程
- Wechat campus maintenance and repair applet graduation design finished product (5) assignment of applet completion work
- 哈希无向图可视化
- Pymoo学习 (6):终止条件
- “未来杯”第二届知识图谱锦标赛正式启动
猜你喜欢

小程序毕设作品之微信校园维修报修小程序毕业设计成品(3)后台功能

Based on easycv to reproduce Detr and dab-detr, the correct opening method of object query

房企打响“保交战”

Full scale and Xuan of C key

Single arm routing experiment demonstration (Huawei router device configuration)
平衡二叉树

JS 基本类型 引用类型 深/浅克隆复制

新瓶装老酒--近期APT32(海莲花)组织攻击活动样本分析
![[Detr for 3D object detection] 3detr: an end to end transformer model for 3D object detection](/img/22/426bcb8641db5bfe07e8aacf5e8427.png)
[Detr for 3D object detection] 3detr: an end to end transformer model for 3D object detection

基于PHP的中非南南合作信息交流平台网站建设
随机推荐
英诚医院内部网络规划与设计
[web technology] 1391 page visualization building tool, previous life and present life
【Web技术】1391- 页面可视化搭建工具前生今世
QT compiled successfully, but the program could not run
网上商城系统MySql数据库设计项目实战
2022 IAA industry category development insight series report - phase II
【DETR用于3D目标检测】DETR3D: 3D Object Detection from Multi-view Images via 3D-to-2D Queries
Wechat campus maintenance and repair applet graduation design finished product (7) Interim inspection report
小程序毕设作品之微信校园维修报修小程序毕业设计成品(5)任务书
Improvement of wechat applet 29 hot search list ②
Wechat campus maintenance and repair application applet graduation design finished product of applet completion work (6) opening defense ppt
FPGA based 1080p 60Hz bt1120 interface debugging process record
[hdlbits questions] Verilog language (3) modules: hierarchy section
前夕 - 0day威胁情报
[919. Complete binary tree inserter]
Huawei recruited "talented teenagers" twice this year; 5.4 million twitter account information was leaked, with a selling price of $30000; Google fired engineers who believed in AI consciousness | gee
C 调的满级和玄
PyQt5单击QTableView垂直表头verticalHeader获取行数据以及单击单元格获取行数据操作
Solve the problem that the win10 account has no administrator rights
qt之编译成功但程序无法运行