📅  最后修改于: 2023-12-03 15:14:21.505000             🧑  作者: Mango
p {
/* 样式规则 */
}
.class-name {
/* 样式规则 */
}
#id {
/* 样式规则 */
}
parent > child {
/* 样式规则 */
}
ancestor descendant {
/* 样式规则 */
}
element + sibling {
/* 样式规则 */
}
element ~ sibling {
/* 样式规则 */
}
/* 内容宽度 + 内边距 + 边框 + 外边距 = 元素宽度 */
width: value;
height: value;
padding: top right bottom left;
border: width style color;
margin: top right bottom left;
font-size: value;
font-style: value;
font-weight: value;
color: value;
text-align: value;
vertical-align: value;
background-color: value;
background-image: url("path/to/image");
background-repeat: value;
background-size: value;
position: relative;
position: absolute;
position: fixed;
float: value;
clear: value;
display: value;
animation: name duration timing-function delay iteration-count direction fill-mode;
transition: property duration timing-function delay;
@media screen and (max-width: value) {
/* 样式规则 */
}