当前位置:网站首页>行盒子的盒模型
行盒子的盒模型
2022-08-10 05:30:00 【*陌路,相逢*】
行盒的盒模型
常见的行盒: 包含具体内容的元素
span,strong,em ,i,img,video,audio
显著特点
盒子沿着内容衍生
行盒不能设置宽高,行盒的宽高是根据内容的大小和多少决定的。调整行盒的大小应该使用字体的大小,行高,字体类型,间接调整。
内边距(填充区)
水平方向有效,垂直方向只影响背景,不会占据具体空间边框
水平方向有效,垂直方向只影响背景,不会占据具体空间外边距
水平方向有效,垂直方向只影响背景,不会占据具体空间
行块盒
disply : inling-block 的盒子
- 不独占一行
- 盒模型中的所有尺寸都有效
在开发中经常用于分页
空白折叠经常发生在行盒内部或行盒之间
可替换元素 和 非可替换元素
大部分元素,页面上显示的内容取决于元素的内容,此元素叫非可替换元素
少部分元素,在页面上显示的内容取决于元素的属性,此元素叫可替换元素
可替换元素有 : img,video,audio
绝大部分的可替换元素都为行盒。可替换元素类似于行块盒,所有的尺寸都有效
边栏推荐
- AVL tree insertion--rotation notes
- Introduction to curl command
- 自适应空间特征融合( adaptively spatial feature fusion)一种基于数据驱动的金字塔特征融合策略
- Attention candidates for the soft exam! The detailed registration process for the second half of 2022 is coming!
- YOLOv5 PyQt5(一起制作YOLOv5的GUI界面)
- scikit-learn机器学习 读书笔记(二)
- Transforming into a product, is it reliable to take the NPDP test?
- Qiskit 学习笔记1
- Buu Web
- oracle rac 11g安装执行root.sh时报错
猜你喜欢

OAuth2 usage scenarios, common misunderstandings, use cases

接口文档进化图鉴,有些古早接口文档工具,你可能都没用过

Advanced Feature Selection Techniques in Linear Models - Based on R

树莓派入门(3)树莓派GPIO学习

canvas canvas drawing clock

Stacks and Queues | Valid parentheses, delete all adjacent elements in a string, reverse Polish expression evaluation, maximum sliding window, top K high frequency elements | leecode brush questions

Error when installing oracle rac 11g and executing root.sh

来亲自手搭一个ResNet18网络

Read the excerpt notes made by dozens of lightweight target detection papers for literacy

如何模拟后台API调用场景,很细!
随机推荐
ResNet的基础:残差块的原理
【格式转换】将JPEG图片批量处理为jpg格式
summer preschool assignments
pytorch框架学习(6)训练一个简单的自己的CNN (三)细节篇
几种绘制时间线图的方法
【静态代理】
Zhongang Mining: Strong downstream demand for fluorite
Nexus_Warehouse Type
PCL点云滤波
Pony语言学习(六):Struct, Type Alias, Type Expressions
基本比例尺标准分幅编号流程
MongoDB 基础了解(一)
An article will help you understand what is idempotency?How to solve the idempotency problem?
用Pytorch从0到1实现逻辑回归
Buu Web
树莓派入门(3)树莓派GPIO学习
MySql's json_extract function processes json fields
Linear Algebra (4)
conda创建虚拟环境方法和pqi使用国内镜像源安装第三方库的方法教程
pytorch框架学习(2)使用GPU训练