当前位置:网站首页>Block level elements & inline elements
Block level elements & inline elements
2022-06-27 06:09:00 【Whistle candy youri】
Block-level elements :
- div
- p
- h1~h6
- ul
- li
characteristic :
- Line break
- Width fills the width of the parent element
- You can set height, width, margin, padding
Height , The width is full of parent elements
.box1 {
background-color: coral;
height: 100px;
}
.box2 {
background-color: aqua;
height: 100px;
}
Inline elements :
- span
- a
characteristic :
- Don't wrap
- Width and height package content
- Only left and right can be set margin, padding
Inline block element :
- img
- input
characteristic :
- Don't wrap
- Width and height package content
- You can set height, width etc.
边栏推荐
猜你喜欢
JVM的垃圾回收机制
Dev++ 环境设置C语言关键字显示颜色
30个单片机常见问题及解决办法!
Dev++ environment setting C language keyword display color
Software testing year end summary report template
Thinking technology: how to solve the dilemma in work and life?
网关状态检测 echo request/reply
IAR Systems全面支持芯驰科技9系列芯片
免费的 SSH 和 Telnet 客户端PuTTY
0.0.0.0:x的含义
随机推荐
openresty使用文档
Altium Designer 19 器件丝印标号位置批量统一摆放
JVM overall structure analysis
使用CSDN 开发云搭建导航网站
TiDB 数据库快速上手指南
免费的 SSH 和 Telnet 客户端PuTTY
【QT小点】QT下载链接
Jump details of item -h5 list, and realize the function of not refreshing when backing up, and refreshing when modifying data (record scroll bar)
Using CSDN to develop cloud and build navigation websites
信息系统项目管理师---第七章 项目成本管理
卷积神经网络---CNN模型的应用(找矿预测)
JS to implement bidirectional data binding
Active learning
C Primer Plus 第11章_字符串和字符串函数_代码和练习题
Dev++ 环境设置C语言关键字显示颜色
块级元素&行内元素
【QT小作】使用结构体数据生成读写配置文件代码
【养成系】常用正则表达式
Proxy reflect usage details
NoViableAltException([email protected][2389:1: columnNameTypeOrConstraint : ( ( tableConstraint ) | ( columnNameT