当前位置:网站首页>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.
边栏推荐
- Multithreading basic Part3
- 表单校验 v-model 绑定的变量,校验失效的解决方案
- JVM class loading mechanism
- WebRTC系列-網絡傳輸之7-ICE補充之提名(nomination)與ICE_Model
- Thinking technology: how to solve the dilemma in work and life?
- IAR systems fully supports Centrino technology 9 series chips
- 【Cocos Creator 3.5.1】坐标的加法
- TiDB与 MySQL 兼容性对比
- WebRTC系列-网络传输之7-ICE补充之提名(nomination)与ICE_Model
- The risk of multithreading -- thread safety
猜你喜欢

Multithreading basic part2

IDEA一键生成Log日志

Altium designer 19 device silk screen label position shall be placed uniformly in batches

G1和ZGC垃圾收集器

Openresty usage document

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

Quick personal site building guide using WordPress

Using CSDN to develop cloud and build navigation websites

Altium Designer 19 器件丝印标号位置批量统一摆放

多线程带来的的风险——线程安全
随机推荐
【Cocos Creator 3.5.1】input.on的使用
多线程带来的的风险——线程安全
C语言练手小项目(巩固加深知识点理解)
【Cocos Creator 3.5.1】input. Use of on
Inter thread wait and wake-up mechanism, singleton mode, blocking queue, timer
力扣 179、最大数
Spark 之 built-in functions
JVM overall structure analysis
机 器 学 习
Webrtc Series - Network Transport 7 - ice Supplement nominations and ice Modèle
汇编语言-王爽 第8章 数据处理的两个基本问题-笔记
【QT小点】实现看门狗功能,检测外部程序是否在运行
Assembly language - Wang Shuang Chapter 13 int instruction - Notes
Thinking technology: how to solve the dilemma in work and life?
多线程基础部分Part3
JVM class loading mechanism
What's new in redis4.0 - active memory defragmentation
30个单片机常见问题及解决办法!
openstack实例重启状态就会变成错误处理方法,容器搭建的openstack重启计算节点compute服务方法,开机提示Give root password for maintenance处理方法
Configuration of vscode korofileheader