标签选择器 | 0001 |
类选择器 | 0010 |
id选择器 | 0100 |
伪类选择器 | 0010可叠加 |
包含选择器 | 权重之和 |
属性选择器 | 0010 |
伪元素选择器 | 0001 |
内联样式 | 1000 |
font-style: italic | 倾斜 |
font-weight: | 加粗 |
font-size: | 字体大小px |
font-family: | 字体—> |
font-size:2em | 首行缩进 |
text-align:center | 居中 |
line-height: | 行高 |
text-decoration: | 《去a链接下划线 |
color: rgb | 设置文字颜色 |
opacity | 透明效果 |
list-style:none | 去除默认序号样式 |
background-color | 背景颜色 |
background-image | 背景图片 |
background-repeat:no-repeat | 图片不重复 |
background-attachment:fixed | 固定背景图 |
background-size: cover | 强行铺满 |
div h1 - h6 p li | 块元素:独占一行,可以设置宽高,设置内外宽高 |
a.span | 行内原素:无法直接设置宽高 |
img,input | 行内块元素:可以直接设置宽高 |
display:block | 将其他元素转化为快元素 |
display:inline-block | 将其他元素转化为行内快元素 |
border:-px | 形状 颜色 |
border-radius | 边框弧度 |
cellspacing="0" | 去除间隙 |
resize none | 文本域 |
position:absoiute; | 绝对定位 |
z-index | 优先显示 |
position: fixed | 固定定位 |
position: sticky | 粘性定位 |
我的笔记3
最新推荐文章于 2024-09-16 21:30:36 发布