当前位置:网站首页>Use of elastic box / expansion box (Flex)
Use of elastic box / expansion box (Flex)
2022-07-27 08:17:00 【Real code slag】
List of articles
Elastic box (flex)
css A means of layout in , It is mainly used to replace floating to complete the layout of the page , It can make elements elastic , Let the elements change with the size of the page .
Elastic container : To use an elastic box, you must first set an element as an elastic container
- display:flex, Set as a block level elastic container
- display:inline-flex, Set as in-line elastic container
Elastic element : The child element of the elastic container is the elastic element .
flex-direction: Arrangement of elastic containers
– row: The default value is , Elastic elements are arranged horizontally from left to right
– row-reverse: Reverse horizontal arrangement , From right to left
– colum: Elastic elements are arranged vertically from top to bottom
– colum-reverse: Elastic elements are arranged vertically from bottom to top in reverseflex-grow: The coefficient of extension of the elastic element
flex-shrink: Shrinkage coefficient of elastic element
flex-wrap: Elastic elements wrap automatically in elastic containers
– nowrap: The default value is , Don't wrap
– wrap: Elements wrap automatically along the minor axis
– wrap-reverse: Elements wrap in the opposite direction of the minor axisjustify-content: How to allocate the blank interval on the spindle
– flex-start: Arrange along the starting edge of the spindle
– flex-end: Arrange along the end edge of the spindle
– center: The elements are centered
– space-around: White space is distributed on both sides of the element
– space-evenly: Blank space cannot be divided into one side of the element
– space-between: Blank space can't be evenly divided between elementsalign-item: Alignment of elements on the minor axis
– stretch: The default value is , Set the length of the element to the same value
– flex-start: Elements do not stretch , Align along the starting edge of the minor axis
– flex-end: Elements do not stretch , Align along the final edge of the minor axis
– center: Align center
– baseline: Baseline alignmentalign-content: Distribution of the blank part of the secondary axis , Optional value and justify-content identical
flex-basis: The basic length of the element on the spindle . If the spindle is transverse , Then specify the width ; If the spindle is longitudinal , Then the specified height .
边栏推荐
- Lua stateful iterator
- 数据提取1
- "Intermediate and advanced test questions": what is the implementation principle of mvcc?
- Development of three database general SQL code based on PG Oracle and MySQL
- Apache SSI remote command execution vulnerability
- [ciscn2019 southeast China division]web11 1
- Record a PG master-slave setup and data synchronization performance test process
- 开怀一笑
- 2020国际机器翻译大赛:火山翻译力夺五项冠军
- [BJDCTF2020]EasySearch 1
猜你喜欢
![[target detection] yolov6 theoretical interpretation + practical test visdrone data set](/img/ad/78835eea4decc15e0981e6561b875f.png)
[target detection] yolov6 theoretical interpretation + practical test visdrone data set

redis配置文件下载

SSTI template injection

idea远程调试

如何获取广告服务流量变现数据,助力广告效果分析?

"PHP Basics" tags in PHP
![[ten thousand words long article] thoroughly understand load balancing, and have a technical interview with Alibaba Daniel](/img/fc/1ee8b77d675e34da2eb8574592c489.png)
[ten thousand words long article] thoroughly understand load balancing, and have a technical interview with Alibaba Daniel

How to obtain the cash flow data of advertising services to help analyze the advertising effect?

Vcenter7.0 installation of ibm3650m4 physical machine

Attack and defense World Lottery
随机推荐
How to log in multiple wechat on the computer
Day111. Shangyitong: integrate nuxt framework, front page data, hospital details page
Use of string type "PHP Basics"
Attack and defense world MFW
Netdata 性能监测工具介绍、安装、使用
Stored procedure trial 2 -- establish a test table to test different types of stored procedures
docker 安装mysql后进入容器内部发现登录不了mysql
CommonTitleBar hide left right
[applet] the upload of the wechat applet issued by uniapp failed error: error: {'errcode': -10008,'errmsg':'Invalid IP
Plato farm is expected to further expand its ecosystem through elephant swap
Promise details
ERP生产作业控制 华夏
Introduction to depth first search (DFS)
XxE & XML vulnerability
The dragon lizard exhibition area plays a new trick this time. Let's see whose DNA moved?
数据库启动报error_user_connect_times > 0错误
【目标检测】YOLOv6理论解读+实践测试VisDrone数据集
数据提取2
"PHP Basics" use of integer data
Database startup report error_ user_ connect_ times > 0 error