프로그램 관련/jquery&jsp&HTML

a 태그 색상넣기, 색 넣기

SeoHW 2019. 1. 9. 11:14
반응형

- 소 스 -

<HEAD>
<TITLE> 링크에 밑줄 없애기 </TITLE>

<style type="text/css">
 
a:link { color: red; text-decoration: none;}
 
a:visited { color: black; text-decoration: none;}
 
a:hover { color: blue; text-decoration: underline;}
</style>

- 해 석 -
style 소스의 type = text를 제어하는 css로 한다.
a:link : 클릭하지 않은 링크
a:visited : 한번 클릭했던 혹은 다녀갔던 링크
a:hover : 링크를 클릭하려고 마우스를 가져갔을 때
decoration : 밑줄
none : 없는 상태
underline : 있는 상태

a:active : 링크부분에서 마우스를 누르고 있는 동안의 상태



출처: http://it77.tistory.com/126 [시원한물냉의 사람사는 이야기]

반응형