当前位置:网站首页>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.
边栏推荐
- LeetCode 0086.分隔链表
- 使用 WordPress快速个人建站指南
- [cocos creator 3.5.1] addition of coordinates
- tar: /usr/local:归档中找不到tar: 由于前次错误,将以上次的错误状态退出
- Using CSDN to develop cloud and build navigation websites
- 写一个 goroutine 实例, 同时练习一下 chan
- IDEA一键生成Log日志
- openstack实例重启状态就会变成错误处理方法,容器搭建的openstack重启计算节点compute服务方法,开机提示Give root password for maintenance处理方法
- 我对于测试团队建设的意见
- js实现双向数据绑定
猜你喜欢

Program ape learning Tiktok short video production

Active learning

POI 替换docx中的文字和图片

使用CSDN 开发云搭建导航网站

Distribution gaussienne, régression linéaire, régression logistique

Information System Project Manager - Chapter VII project cost management

G1和ZGC垃圾收集器

汇编语言-王爽 第11章 标志寄存器-笔记

427- binary tree (617. merge binary tree, 700. search in binary search tree, 98. verify binary search tree, 530. minimum absolute difference of binary search tree)

思维的技术:如何破解工作生活中的两难冲突?
随机推荐
JVM常用指令
Download CUDA and cudnn
【Cocos Creator 3.5.1】event.getButton()的使用
Multithreading basic part part 1
Multithreading basic part2
JVM整体结构解析
多线程基础部分Part2
多线程带来的的风险——线程安全
Jump details of item -h5 list, and realize the function of not refreshing when backing up, and refreshing when modifying data (record scroll bar)
What's new in redis4.0 - active memory defragmentation
【QT小点】实现看门狗功能,检测外部程序是否在运行
JS to implement bidirectional data binding
[cocos creator 3.5.1] addition of coordinates
Force buckle 179, max
The risk of multithreading -- thread safety
1317. 将整数转换为两个无零整数的和
信息系统项目管理师---第七章 项目成本管理
《汇编语言-王爽》第3章笔记及实验
Built in functions of spark
Spark's projection