当前位置:网站首页>Inline element, block element, inline block element
Inline element, block element, inline block element
2022-06-24 07:46:00 【Dregs washing】
Catalog
Inline elements 、 A block element 、 Inline block element
One 、 Inline elements
characteristic :
1. adjacent Inline elements in On one line , a line Sure Show multiple
2. high 、 wide 、 Set up directly yes Invalid Of
3. Default width Namely Its own content Of Width
4. Inline elements Only text can be accommodated or Other inline elements
notes : Under special circumstances < a> Inside can Block level elements , to < a> It is safest to convert to block level elements
Common in line elements :< a> < strong> < b> < em> < i> < del> < s> < ins> < u> < span> etc.
Two 、 A block element
characteristic :
1. own Monopolize one line
2. Height 、 Width 、 Both the outer margin and the inner margin Can be controlled
3. The default width is Containers ( Parent element ) Width 100%
4. It's a container and a box , Inside Sure Release inner or block elements
notes : A block level element cannot be placed inside an element of a text class , Such as < p> It is mainly used for putting text , Therefore, block level elements cannot be placed , especially < div>
Common block level elements :< div> < p> < ul> < li> < h1>···< h6>
3、 ... and 、 Inline block element
characteristic :
1. And the adjacent line elements ( Inline block element ) On one line . But between them There will be gaps . One line can display multiple ( In line element features )
2. The default width is the width of its own content ( In line element features )
3. Height , Row height , Both the outer and inner margins can be controlled ( Block level element features )
Common inline block elements :< img/> < input> < td>
Four 、 Element display display transformation
Convert to block element :display: block;
Convert to inline elements :display: inline;
Convert to inline block elements :display: inline-block;
边栏推荐
- Wechat cloud hosting hot issues Q & A
- 向量操作与坐标转换相关方法
- .jar中没有主清单属性
- Cloud development who is the source code of undercover applet
- Event related | reveal how Ti-One's support ability for large-scale events is developed
- Actual target shooting - skillfully use SMB to take down the off-line host
- Oracle-高级SQL限定查询
- Continue to have a fever. Try the asynchronous operation of dart language. The efficiency is increased by 500%
- Deploy L2TP in VPN (Part 2)
- Spark stage and shuffle for daily data processing
猜你喜欢

希尔伯特-黄变换

How to turn on win11 notebook power saving mode? How to open win11 computer power saving mode

光照使用的简单总结

Baidu map, coordinate inversion, picking coordinate position

Maxcompute remote connection, uploading and downloading data files

Description of module data serial number positioning area code positioning refers to GBK code
![[frame rate doubling] development and implementation of FPGA based video frame rate doubling system Verilog](/img/38/92486c92557e6e5a10a362eb2b7bdf.png)
[frame rate doubling] development and implementation of FPGA based video frame rate doubling system Verilog

【NILM】非入侵式负荷分解模块nilmtk安装教程

What kind of experience is it when the Institute earns 20000 yuan a month!

Shader 常用函数
随机推荐
Event related | reveal how Ti-One's support ability for large-scale events is developed
希尔伯特-黄变换
Experience of Shenzhou computer
chrono 使用备注
(cve-2020-11978) command injection vulnerability recurrence in airflow DAG [vulhub range]
火线,零线,地线,你知道这三根线的作用是什么吗?
Q & A on cloud development cloudbase hot issues of "Huage youyue phase I"
C escape character
UE common console commands
[vulhub shooting range]] ZABBIX SQL injection (cve-2016-10134) vulnerability recurrence
【008】表格数据逐行筛选,跳出for循环及跳过本次循环思路_#VBA
The seminar on "global IPv6 development and outlook 2020-2021" was held in Beijing
UTC、GMT、CST
Counter attack from outsourcing to big factories! Android has been developed for 5 years, and after a year of dormancy, it has tried to become an offer harvester. Tencent has a fixed salary of 20*15
Alibaba cloud full link data governance
Teach you how to use the reflect package to parse the structure of go - step 2: structure member traversal
Win10 build webservice
线程的阻塞问题
位运算
力扣(LeetCode)174. 地下城游戏(2022.06.23)