当前位置:网站首页>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 )
边栏推荐
- Shenzhi Kalan Temple
- [MRCTF2020]PYWebsite 1
- openGauss之TryMe初体验
- You may need an additional loader to handle the result of these loaders.
- [BJDCTF2020]EasySearch 1
- Flutter 渲染机制——GPU线程渲染
- On Valentine's day, I drew an object with characters!
- Dasctf2022.07 enabling game password WP
- [applet] the upload of the wechat applet issued by uniapp failed error: error: {'errcode': -10008,'errmsg':'Invalid IP
- Internet of things industrial UART serial port to WiFi to wired network port to Ethernet Gateway WiFi module selection
猜你喜欢

数据提取1

What are the software tuning methods? Let's see what Feiteng technology experts say about dragon lizard technology

Design and development of GUI programming for fixed-point one click query

vCenter7.0管理Esxi7.0主机

Vcenter7.0 managing esxi7.0 hosts
![[target detection] yolov6 theoretical interpretation + practical test visdrone data set](/img/ad/78835eea4decc15e0981e6561b875f.png)
[target detection] yolov6 theoretical interpretation + practical test visdrone data set
![[MRCTF2020]PYWebsite 1](/img/d4/2d9cd06abd7188add668cde77d3075.png)
[MRCTF2020]PYWebsite 1

我用字符画出了一个谷爱凌!

SSTI template injection

QT creator code style plug-in beautifier
随机推荐
Opengauss stopped from the library and found that the main library could not write data
"Intermediate and advanced test questions": what is the implementation principle of mvcc?
2022-07-26 group 4 abstract classes and interfaces
如何在qsim查看软件对象的实例?
Ubuntu: install PostgreSQL
JS advanced knowledge - function
[applet] the upload of the wechat applet issued by uniapp failed error: error: {'errcode': -10008,'errmsg':'Invalid IP
Solid smart contract development - 3.3-solid syntax control structure
SSTI template injection
面试官:什么是脚手架?为什么需要脚手架?常用的脚手架有哪些?
The code interface is a little automated
Data extraction 2
Bandwidth and currency
"PHP Basics" uses echo statements to output information
Alibaba cloud international receipt message introduction and configuration process
Mqtt instruction send receive request subscription
[target detection] yolov6 theoretical interpretation + practical test visdrone data set
帮忙发几个招聘,有兴趣可以看看
百人参与,openGauss开源社区这群人都在讨论什么?
带宽 与 货币
