CSS 互動偽類(Pseudo-classes)介紹
1. :hover
:hovera:hover {
color: red;
text-decoration: underline;
}2. :active
:activebutton:active {
background-color: yellow;
transform: scale(0.98);
}3. :focus
:focusinput:focus {
outline: none;
border: 2px solid blue;
}4. :checked
:checked5. :disabled / :enabled
:disabled / :enabled6. :nth-child() / :first-child / :last-child
:nth-child() / :first-child / :last-childLast updated