"CSS :link :visited :hover :active 셀렉터"의 두 판 사이의 차이

2번째 줄: 2번째 줄:
;<nowiki>CSS :link :visited :hover :active Selector</nowiki>
;<nowiki>CSS :link :visited :hover :active Selector</nowiki>
;<nowiki>CSS :link :visited :hover :active 셀렉터</nowiki>
;<nowiki>CSS :link :visited :hover :active 셀렉터</nowiki>
*[[HTML a 태그]]에 사용되는 [[CSS 의사-클래스 셀렉터]]
*많이 사용되는 [[CSS 의사-클래스 셀렉터]]들
*주로 [[HTML a 태그]]에 사용
:[[a 태그]] 외에도 :hover (마우스오버)와 :active (마우스누른상태)는 적용가능


==:link==
==:link==

2014년 9월 18일 (목) 00:47 판

1 개요

CSS :link :visited :hover :active Selector
CSS :link :visited :hover :active 셀렉터
a 태그 외에도 :hover (마우스오버)와 :active (마우스누른상태)는 적용가능

2 :link

  • 방문하지 않은 링크에 대한 셀렉터

3 :visited

  • 방문한 링크에 대한 셀렉터

4 :hover

  • 마우스가 올려져 있는 상태에 대한 셀렉터

5 :active

  • 누른 상태에 대한 셀렉터

6 예시

<style>
.myclass { font-size: 2em; }
.myclass:link { background-color: yellow; }
.myclass:hover { background-color: red; }
.myclass:visited { background-color: gray; }
.myclass:active { background-color: green; }
</style>

<br><a class='myclass' href='http://jmnote.com'>http://jmnote.com</a>
<br><a class='myclass' href='http://example.com'>http://example.com</a>
<br><a class='myclass' href='http://example.com/link1'>http://example.com/link1</a>
<br><a class='myclass' href='http://example.com/link2'>http://example.com/link2</a>

7 같이 보기

8 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}