07.声明

image

颜色

image

字体

image
font-weight 粗细 text-index 缩进 test-decoration:描述 cursor: pointer鼠标放在字体上显示小手图标

区块

image
字的间距
image
align-对齐

尺寸

image

定位

image
relative 就是以父级背景的间距为准,原本是以浏览器为准的
image
fixed不关乎任何元素的绝对定位,只相对于浏览器的窗口定位

🚩盒子模型

image

外边距

image
4个参数,用空格隔开 分别是 上 右 下 左

image
通过审查元素可以看到盒子模型 -F12

边框

image
solid 代表实现 边框是往外扩的 如果宽为100ps加上边框就是110px

内边距 padding

和外边距差不多 ,若只有一个参数,就代表上下左右都是10px

posted @ 2022-11-14 13:17  java同学!  阅读(19)  评论(0)    收藏  举报