3.12 關於 Pseudo Class
語法
selector:pseudo-class {
property:value;
}:root
:root{
background-color: red;
}
/* 等同於 */
html{
background-color: red;
}html{
background-color: yellow;
}
:root{
background-color: red; /* 這個會被套用 */
}:hover
:first-child
:last-child
:nth-child
:focus
:checked
:disabled 及 :read-only
其它資源
Last updated