当前位置:网站首页>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;
边栏推荐
- New ways to play web security [6] preventing repeated use of graphic verification codes
- A summary of the posture of bouncing and forwarding around the firewall
- Teach you how to use the reflect package to parse the structure of go - step 2: structure member traversal
- Shader 常用函数
- 光照使用的简单总结
- Several misunderstandings of VPN
- Maxcompute remote connection, uploading and downloading data files
- duilib 显示内存图片
- Camera calibration (calibration purpose and principle)
- Exploration on Optimization of elastic expansion engineering
猜你喜欢

屏幕截图推荐—Snipaste

Oracle-高级SQL限定查询

爬虫基础B1——Scrapy(B站学习笔记)

2022年PMP项目管理考试敏捷知识点(1)

Camera calibration (calibration purpose and principle)

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

图形技术之坐标转换

GPU is not used when the code is running

云开发谁是卧底小程序源码

When MFC uses the console, the project path cannot have spaces or Chinese, otherwise an error will be reported. Lnk1342 fails to save the backup copy of the binary file to be edited, etc
随机推荐
C code writing specification
Detailed explanation of PHP data serialization test example
Climbing 10000 NASA pictures about Mars exploration, I found a secret
Teach you how to use the reflect package to parse the structure of go - step 2: structure member traversal
后疫情时代下,家庭服务机器人行业才刚启航
线程注意事项
Obtain the package name, application name, icon, etc. of the uninstalled APK through packagemanager. There is a small message
本地备份和还原 SQL Server 数据库
Explain the input attribute in PHP (hide the read-only restriction)
MSSQL high permission injection write horse to Chinese path
Tidb operator source code reading (IV) control cycle of components
Unity 的序列化
Description of module data serial number positioning area code positioning refers to GBK code
【008】表格数据逐行筛选,跳出for循环及跳过本次循环思路_#VBA
exness:鲍威尔坚持抗通胀承诺,指出衰退是可能的
Alibaba cloud full link data governance
Session & cookie details
LeetCode 515 在每个数行中找最大值[BFS 二叉树] HERODING的LeetCode之路
Quickly set up PgSQL for serverless
UE常用控制臺命令