当前位置:网站首页>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 .
边栏推荐
- [flight control development foundation tutorial 4] crazy shell · open source formation UAV - serial port (optical flow data acquisition)
- XxE & XML vulnerability
- "PHP Basics" use of integer data
- Stored procedure trial 2 -- establish a test table to test different types of stored procedures
- 信息化项目风险控制与应用
- 虚拟机克隆
- Introduction to depth first search (DFS)
- Demo:st05 find text ID information
- Weekly learning summary
- Want the clouds in the picture to float? Video editing services can be achieved in three steps with one click
猜你喜欢

Combined use of C WinForm form form event and delegate

Day111. Shangyitong: integrate nuxt framework, front page data, hospital details page

数据提取1

Ubuntu: install PostgreSQL

How to update PIP3? And running PIP as the 'root' user can result in broken permissions and conflicting behavior
![[applet] the upload of the wechat applet issued by uniapp failed error: error: {'errcode': -10008,'errmsg':'Invalid IP](/img/0c/da2ffc00834793c7abc0f7ebe6321b.png)
[applet] the upload of the wechat applet issued by uniapp failed error: error: {'errcode': -10008,'errmsg':'Invalid IP

redis配置文件下载

Promise details

Internet of things industrial UART serial port to WiFi to wired network port to Ethernet Gateway WiFi module selection

"Basic knowledge of PHP" implement mathematical operations in PHP
随机推荐
Harbor正确密码登录不上去
OPPO 自研大规模知识图谱及其在数智工程中的应用
如何获取广告服务流量变现数据,助力广告效果分析?
[applet] the upload of the wechat applet issued by uniapp failed error: error: {'errcode': -10008,'errmsg':'Invalid IP
Breadth first search
Lua stateful iterator
Luogu Taotao picks apples
"PHP Basics" uses echo statements to output information
SETTA 2020 国际学术会议即将召开,欢迎大家参加!
Plato farm is expected to further expand its ecosystem through elephant swap
SSTI template injection
Dirsearch[directory scanning tool]
You may need an additional loader to handle the result of these loaders.
Ubuntu: install PostgreSQL
虚拟机克隆
一文速览EMNLP 2020中的Transformer量化论文
[geek challenge 2019] finalsql 1
数据库启动报error_user_connect_times > 0错误
二零二零年终总结
3D laser slam: Interpretation of logo-loam paper --- Abstract