Files
ClassContent/历届学生/熊坤/2019-03-14/笔记.txt
2024-09-27 02:06:13 +08:00

31 lines
821 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

小知识点:
1块级标签和行内标签相互转化
块级标签: 可以设置宽高属性
行内标签: 不可以设置宽高属性
display:
1: block 将行内标签元素转换为块标签,可以设置宽高
2: inline 将块标签转换为行内标签,将会失去设置宽高的特性
3: inline-block 让一个元素同时具有 block 和 inline 的所有属性
2 盒子模型:网页中任何元素都具有盒子模型的特征,
margin 外边距
padding 内边距
border 边框
content 内容
元素的真实宽高 = 你设置的宽高 + (padding + padding) + (border + border)
3浮动https://www.cnblogs.com/acorn/p/5249089.html
4提前预习
定位http://www.runoob.com/css/css-positioning.html