当前位置:网站首页>Move layout (Flex layout, viewport label)
Move layout (Flex layout, viewport label)
2022-04-23 08:05:00 【GuTaiWEI】
Record what you have learned , Welcome comments and corrections .
Viewport label
Grammar format
// Default
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
// standard
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
viewport: viewport
width=device-width
: Viewport width = Device widthinitial-scale=1.0
: Initial page zoom factormaximum-scale=1.0
Maximum zoomuser-scalable=0
Do not allow users to zoom pages ( Mobile ) Or for no If yes Allows the user to zoom
Percentage layout ( Fluid layout )
effect : Width adaptation , Fixed height .
flex Layout / Elastic layout
effect : be based on Flex Accurately and flexibly control the layout of block level boxes , Avoid separation from document flow in floating layout .Flex The layout is very suitable for structured cloth
Format :
display:flex;
flex-direction
flex-direction
: Property determines the direction of the spindle ( That is, the arrangement direction of the project )
.box { flex-direction: row | row-reverse | column | column-reverse; }
- row( The default value is ): The principal axis is horizontal , The starting point is on the left .
- row-reverse: The principal axis is horizontal , The starting point is on the right .
- column: The principal axis is perpendicular , The starting point is at the top .
- column-reverse: The principal axis is perpendicular , Starting edge .
flex-wrap
flex-wrap
: Set whether the items in the container wrap , By default , The projects are all in one line .
.box{ flex-wrap: nowrap | wrap | wrap-reverse; }
- nowrap( Default ): Don't wrap .
- wrap: Line break , The first row is at the top .
- wrap-reverse: Line break , The first row is at the bottom .
flex-flow
flex-flow
: The attribute is flex-direction
Properties and flex-wrap
Attribute shorthand , The default value is row nowrap
.
.box { flex-flow: flex-direction flex-wrap; }
justify-content
justify-content
: Property defines the alignment of the item on the spindle .
.box { justify-content: flex-start | flex-end | center | space-between | space-around; }
- flex-start( The default value is ): Align left
- flex-end: Right alignment
- center: In the middle
- space-between: full-justified , The intervals between the items are all equal .
- space-around: The spacing between each item is equal . therefore , The spacing between items is twice as large as the spacing between items and the border .
- space-evenly: The spacing between items is equal to the spacing between items and borders .
align-items
align-items
: Property defines how items are aligned on the cross axis .
.box { align-items: flex-start | flex-end | center | baseline | stretch; }
- flex-start: Align the starting points of the intersecting axes .
- flex-end: The ends of the intersecting axes are aligned .
- center: Align the midpoint of the intersecting axis .
- baseline: Baseline alignment of the first line of text for the project .
- stretch( The default value is ): If the project is not set to height or set to auto, Will fill the entire container .
align-content
align-content
: Property defines the alignment of multiple axes . If the project has only one axis , This property does not work , Attribute values are basically the same as justify-content
identical .
.box { align-content: flex-start | flex-end | center | space-between | space-around | stretch; }
- flex-start: Align with the starting point of the intersecting axis .
- flex-end: Align with the end of the cross axis .
- center: Align with the midpoint of the intersecting axis .
- space-between: Align with both ends of the cross axis , The average distribution of spacing between axes .
- space-around: The spacing between each axis is equal . therefore , The spacing between the axes is twice as large as the spacing between the axes and the borders .
- stretch( The default value is ): The axis occupies the entire cross axis .
Expansion ratio
attribute :flex : Integers ;
flex:1;
effect : Will the whole flex The remaining space of the container is divided into , Then assign it to the project .
- Only the remaining size of the parent box
- Is to add this attribute to the sub box
Reference resources :Flex Layout of the tutorial : Grammatical passage - Ruan Yifeng's Weblog
版权声明
本文为[GuTaiWEI]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230624538930.html
边栏推荐
- 内网渗透系列:内网隧道之icmptunnel(jamesbarlow师傅的)
- 数据库之MySQL——基础篇
- Analysis of Nacos source code
- Research on system and software security (4)
- feign如何集成hystrix
- Dvwa 靶场练习记录
- The displayed amount of ABAP ALV is inconsistent with the exported amount
- Export all SVG files in the specified path into pictures in PNG format (thumbnail or original size)
- Expression related to month, year and day in SVG
- Personality charm of high paid it workers
猜你喜欢
Série de pénétration Intranet: icmpsh du tunnel Intranet
《内网安全攻防:渗透测试实战指南》读书笔记(八):权限维持分析及防御
vivo,硬件安全的爱与雷霆
Redis--为什么字符串emstr的字符串长度是44字节上限?
Intranet penetration series: icmptunnel of Intranet tunnel (by master dhavalkapil)
Intranet penetration series: pingtunnel of Intranet tunnel
Chapter V investment real estate
内网渗透系列:内网隧道之pingtunnel
Houdini fluid > > particle fluid export to unity note
内网渗透系列:内网隧道之icmptunnel(DhavalKapil师傅的)
随机推荐
Search and replacement of C text file (WinForm)
SAP GUI security
sentinel集成nacos动态更新数据原理
When using flash, the code ends automatically without an error, the connection cannot be maintained, and the URL cannot be accessed.
Feign源码分析
Chapter VII asset impairment
一文了解系列,对web渗透的常见漏洞总结(持续更新)
SAP self created table log function is enabled
随笔(不定时更新)
Talk about the essence of interface idempotent and consumption idempotent
CTF攻防世界刷题51-
C smoothprogressbar custom progress bar control
SAP TR手动导入系统操作手册
C # control the camera, rotate and drag the observation script (similar to scenes observation mode)
国基北盛-openstack-容器云-环境搭建
MySQL——第一章节(MySQL中的数据类型)
Reading notes
求3个字符串(每串不超过20个字符)中的最大者。
从ES、MongoDB、Redis、RocketMQ出发谈分布式存储
1+x云计算中级--脚本搭建读写分离