Hyperlink
이 예제에서는 하이퍼 링크를 문서에 서로 다른 색상을 추가하는 방법을 보여줍니다.
Hyperlink 2
이 예제에서는 하이퍼 링크에 다른 스타일을 추가하는 방법을 보여줍니다.
Hyperlink: use of :focus (does not work in IE)
이 예제에서는 하이퍼 링크에있는 : 의사 - 클래스를 사용하는 방법을 보여줍니다.
:first-child - change first child <p>
이 예제는 파란색으로 어떤 요소의 첫 번째 아이는 어떤 <p> 요소를 설정합니다.
:first-child - change first child <i> in all <p> elements
이 예제는 첫 세트를 <i> 모든 요소 <p> 요소 파란색.
:first-child - change all <i> elements in first child <p>
이 예제에서 첫 번째 자식 요소가 <i> 요소 <p> 파란색을 설정합니다.
:lang (does not work in IE)
이 예제의 사용 : lang 의사 - 클래스를 보여줍니다.
Pseudo-classes
Browser support: IE: Internet Explorer, F: Firefox, N: Netscape.
W3C의 : "W3C의"열에있는 숫자는 CSS를 추천 재산 (CSS1 또는 CSS2 정의됨)을 나타냅니다.
| Pseudo-class | Purpose | IE | F | N | W3C |
|---|---|---|---|---|---|
| :active | Adds special style to an activated element | 4 | 1 | 8 | 1 |
| :focus | Adds special style to an element while the element has focus | - | 1.5 | 8 | 2 |
| :hover | Adds special style to an element when you mouse over it | 4 | 1 | 7 | 1 |
| :link | Adds special style to an unvisited link | 3 | 1 | 4 | 1 |
| :visited | Adds special style to a visited link | 3 | 1 | 4 | 1 |
| :first-child | Adds special style to an element that is the first child of some other element | 7 | 1 | 7 | 2 |
| :lang | Allows the author to specify a language to use in a specified element | - | 1 | 8 | 2 |






6419
16
26

















댓글을 달아 주세요