当前位置:网站首页>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对象组成和存储
- Wholestagecodegen of spark
- tracepoint
- HTAP 快速上手指南
- TiDB的事务概览
- Assembly language - Wang Shuang Chapter 13 int instruction - Notes
- 【QT小点】QT下载链接
- 使用CSDN 开发云搭建导航网站
- 426 binary tree (513. find the value in the lower left corner of the tree, 112. sum of paths, 106. construct a binary tree from the middle order and post order traversal sequence, 654. maximum binary
- Thinking technology: how to solve the dilemma in work and life?
猜你喜欢

函数栈帧的形成与释放

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

Program ape learning Tiktok short video production

Yaml file encryption

Quick personal site building guide using WordPress

LeetCode 0086. Separate linked list

线程间等待与唤醒机制、单例模式、阻塞队列、定时器

Formation and release of function stack frame

Proxy-Reflect使用详解

Crawler learning 5--- anti crawling identification picture verification code (ddddocr and pyteseract measured effect)
随机推荐
693. alternate bit binary number
Yaml file encryption
JVM调优思路
高斯分布Gaussian distribution、线性回归、逻辑回归logistics regression
[getting started] regular expression Basics
写一个 goroutine 实例, 同时练习一下 chan
openstack实例重启状态就会变成错误处理方法,容器搭建的openstack重启计算节点compute服务方法,开机提示Give root password for maintenance处理方法
yaml文件加密
多线程基础部分Part 1
Openresty usage document
TiDB 基本功能
日期 数据库日期 字符串 之间互相转换
Program ape learning Tiktok short video production
TiDB 中的数据库模式概述
Change the status to the corresponding text during MySQL query
《汇编语言-王爽》第3章笔记及实验
Unrecognized VM option ‘‘
POI 替换docx中的文字和图片
JVM overall structure analysis
openresty使用文档