当前位置:网站首页>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 )
边栏推荐
- Bandwidth and currency
- STM32小bug汇总
- What is a rebound shell? What's the use of bouncing shells?
- Debug: generic related "unresolved external symbols"
- Use of elastic box / expansion box (Flex)
- Introduction, installation and use of netdata performance monitoring tool
- Dormitory access control system made by imitating the boss (III)
- [golang] golang develops wechat official account web page authorization function
- 第2章 前台数据展现
- After installing mysql, docker entered the container and found that he could not log in to MySQL
猜你喜欢
![[target detection] yolov6 theoretical interpretation + practical test visdrone data set](/img/ad/78835eea4decc15e0981e6561b875f.png)
[target detection] yolov6 theoretical interpretation + practical test visdrone data set

I drew a Gu ailing with characters!
![[BJDCTF2020]EasySearch 1](/img/ea/90ac6eab32c28e09bb1fab62b6b140.png)
[BJDCTF2020]EasySearch 1

How to log in multiple wechat on the computer

好吃难吃饱七分为宜;好喝难喝醉三分为佳

Data extraction 2

Demo:st05 find text ID information

Use of string type "PHP Basics"

It's better to be full than delicious; It's better to be drunk than drunk
![[MRCTF2020]PYWebsite 1](/img/d4/2d9cd06abd7188add668cde77d3075.png)
[MRCTF2020]PYWebsite 1
随机推荐
Eval and assert execute one sentence Trojan horse
带宽 与 货币
Stored procedure trial 2 -- establish a test table to test different types of stored procedures
Luogu Taotao picks apples
1178 questions of Olympiad in informatics -- ranking of grades
Data extraction 2
Kalibr calibration realsensed435i -- multi camera calibration
[uni app advanced practice] take you hand-in-hand to learn the development of a purely practical complex project 1/100
Download and usage of sequel Pro
Breadth first search
Redis configuration file download
Containerd failed to pull private database image (kubelet)
[NPUCTF2020]ReadlezPHP 1
ERP production operation control Huaxia
A quick overview of transformer quantitative papers in emnlp 2020
On Valentine's day, I drew an object with characters!
[applet] how to get wechat applet code upload key?
"PHP Basics" use of integer data
Is redis really slowing down?
Leetcode54. Spiral matrix
