当前位置:网站首页>Deeply understand the characteristics of standard flow and off standard elements
Deeply understand the characteristics of standard flow and off standard elements
2022-06-25 04:59:00 【MomentYY】
Catalog
Deeply understand the characteristics of standard flow and off standard elements
1. Standard flow (Normal Flow)
By default , The elements are in accordance with normal flow( Standard flow 、 Conventional flow 、 Normal flow 、 The document flow ) Arranged .
- Arrangement order : In the browser From left to right , From top to bottom Sequential placement ;
- By default , Elements interact with each other There is no lamination ;

2. Under what circumstances will elements be de labeled ?
Out of the standard stream ( abbreviation “ De labeling ”), So when does an element break away from the standard flow ? There are two common :
- Element settings position, also position The value of is fixed or absolute;
- Add floating element float, also float The value of the none;
3. Characteristics of off standard elements
You can set the width and height at will , The width and height are determined by the content by default .
Block-level elements :
The standard of ( By default, it takes up the width of the parent element );

Off bid display ( Width and height are supported by content );

Inline elements break away from the standard flow :
The standard of ( By default, it is supported by content , And the width and height cannot be set );

Off bid display ( Width and height are still supported by the content , But you can set the width and height );

No longer constrained by the standard flow .
No longer report width and height data to the parent element , That is, you can't open the parent element .
4. Off label and display What does it matter ?
According to the characteristics of the above off standard elements , Some people may think that de labeling is actually converting elements into
inline-block, Because of its display effect and settingdisplay: inline-block;The effect is consistent , But the reason is not so .
When different elements are de labeled , The correspondence will be displayed as display What kind of attribute value ? stay MDN and W3C There are explanations on the official website , And a reference table is provided :
MDN in , To search for float Attribute as an example ;

stay W3C In official documents , About
display、positionandfloatThe relationship between ;
summary :
- Most elements will be converted into... After de labeling
blocktype . - A question can be raised here ,
blockIsn't the type occupying the width of the parent element , Why is the off label element finally supported by the content ? - answer : After element de labeling , No longer constrained by standard flow , The position of the parent element is not limited , It's hard to say who the parent element is , And block level (block) The default width and height of elements are
auto, It is difficult to refer to the parent element width , Therefore, the best display form is to be supported by the content by default .
边栏推荐
- Write shell script error summary
- Huawei Hongmeng development lesson 4
- SRC platform summary
- win11蓝牙无法连接怎么办?win11蓝牙无法连接的解决方法
- Filter & listener (XIV)
- 台式电脑连不上wifi怎么办
- File upload vulnerability shooting range upload labs learning (pass1-pass5)
- Method of opening data recovery of solid state disk
- Construction scheme of distributed websocket
- Response (XI)
猜你喜欢

Ranorex Studio 10.1 Crack

TX Text Control 30.0 ActiveX

Upgrade PHP to php7 The impact of X (2), the obsolescence of mcrypt decryption

What is Ethernet and how to connect the computer

PHP calls map API

Introduction to the hardest core PWN in the whole network_ Graphic analysis

Kotlin Compose 完善toDo项目 Surface 渲染背景 与阴影

《QDebug 2022年6月》

Method of opening data recovery of solid state disk

【图像融合】基于matlab方向离散余弦变换和主成分分析图像融合【含Matlab源码 1907期】
随机推荐
Virtual honeypot Honeyd installation and deployment
Laravel's little knowledge
Eyeshot Ultimate 2022 Crack By Xacker
leetcode1221. Split balance string
ASEMI大功率场效应管和三极管的区别
WPF 使用 MAUI 的自绘制逻辑
Chapter IX app project test (2) test tools
The print area becomes smaller after epplus copies the template
[Flink] problems and solutions of the continuous growth of checkpoint size in rocksdb incremental mode
How to apply for software
ThinkPHP 5 log management
2021-10-24
Penetration information collection steps (simplified version)
Precise delay based on Cortex-M3 and M4 (systick delay of system timer can be used for STM32, aducm4050, etc.)
Write shell script error summary
CTFHUB SSRF
buuctf(pwn)
After the newly assigned variable of the applet is modified, the original variable will also be modified
The solution of wechat applet switchtab unable to take parameters
Méthode de récupération des données d'ouverture du disque dur à l'état solide