문서의 이전 판입니다!
의사 클래스(Pseudo classes, 쑤도우 클래스)는 요소의 특별한 샅애를 정의하기 위해 사용합니다.
예를 들어,
에 사용할 수 있습니다.
의사 클래스의 구문은 하기와 같습니다.
링크는 다양한 방식으로 표시됩니다.
Note: a:hover come after a:link and a:visited in the CSS definition in order to be effective.
Note: a:active MUST cone after a:hover in the CSS definition in order to be effective.
Note:
a:hover
는 CSS 정의에서 a:link
및 a:visited
뒤에 와야 효과적입니다.
a:active
는 CSS 정의에서 a:hover
뒤에 와야 효과적입니다.
의사 클래스 이름은 대소문자를 구분하지 않습니다.
의사 클래스는 CSS 클래스와 결합될 수 있습니다.
예제의 링크 위로 마우스를 가져 가면, 색상이 변경됩니다.
When you hover over the first link below, it will change color: