当前位置:网站首页>Element display mode: block level, inline, inline block, nesting specification, display mode conversion
Element display mode: block level, inline, inline block, nesting specification, display mode conversion
2022-07-27 08:23:00 【Gru 977】
Chrome In debugging mode, there are Computed You can view the display mode of elements .
1. Block-level elements ( Can be alone )block
Monopolize one line
Width : Parent element width ( Default )
Height : Open up by content ( Default )
Width and height can be set
eg:
hx(x=1~6),div , p , ul li , dl dt dd , form , header , nav , footer
2. Inline elements ( Don't do more )inline
One line shows more , Don't wrap
The width is spread by the content
Width and height cannot be set
( horizontal direction )padding and margin You can set
eg:
a , span ,b , u , i , s , strong , ins , em ,del
3. Inline block element ( Multi line inner block )inline-block
More than one in a row ( There is a gap in the middle )
Width and height can be set
eg:
input , textarea , button ,select
img It has the characteristics of inline block elements , however Chrome Is shown as inline
HTML Nested specification :
Block-level elements : Big container , Can be nested : Text , Block level , inline , Inline block element
but p Cannot nest div,p,h
Inline elements : Can be nested : Text , Inline elements
a Any element can be nested inside the label , Except myself
Element display mode conversion
block -> inline :display: inline;
inline -> block :display:block; ( Commonly used )
block , Inline elements -> Block in row :display:inline-block; ( Commonly used )
边栏推荐
- vCenter7.0管理Esxi7.0主机
- Node installation and debugging
- Vcenter7.0 installation of ibm3650m4 physical machine
- Prevent cookies from modifying ID to cheat login
- Shenzhi Kalan Temple
- An ordinary autumn recruitment experience
- Idea remote debugging
- Risk control and application of informatization project
- Five day travels to Beijing
- Interviewer: what is scaffolding? Why do you need scaffolding? What are the commonly used scaffolds?
猜你喜欢
![[target detection] yolov6 theoretical interpretation + practical test visdrone data set](/img/ad/78835eea4decc15e0981e6561b875f.png)
[target detection] yolov6 theoretical interpretation + practical test visdrone data set

Use of "PHP Basics" delimiters

Attack and defense World Lottery

Installation and use of beef XSS

数据提取1

"PHP Basics" tags in PHP

vCenter7.0管理Esxi7.0主机

openGauss之TryMe初体验
![[pytorch] resnet18, resnet20, resnet34, resnet50 network structure and Implementation](/img/44/52c7dc6871fd43223eadfd394e159e.png)
[pytorch] resnet18, resnet20, resnet34, resnet50 network structure and Implementation

UVM入门实验1
随机推荐
Stored procedure trial 2 -- establish a test table to test different types of stored procedures
QPushButton 按钮的创建与简单应用
openGauss之TryMe初体验
"PHP Basics" uses echo statements to output information
[netding cup 2020 rosefinch group]nmap 1 two solutions
"PHP Basics" use of integer data
sql_ Mode strict mode (ansi/traditional/strict_trans_tables)
Use of "PHP Basics" delimiters
containerd拉取私库镜像失败(kubelet)
好吃难吃饱七分为宜;好喝难喝醉三分为佳
I can't figure out why MySQL uses b+ trees for indexing?
2022/7/26 exam summary
Attack and defense World Lottery
情人节,我用字符画出了一个对象!
Graph node deployment and testing
STM32小bug汇总
Leetcode54. Spiral matrix
File name wildcard rules for kettle
借生态力量,openGauss突破性能瓶颈
1024 | in the fourth year officially called Menon, the original intention is still there, and continue to move forward
