CSS Links 배경색
CSS Links 배경색
background-color속성은 링크에 대한 배경 색상을 지정하는 데 사용할 수 있습니다 :
예
a:link {
background-color: yellow;
}
a:visited {
background-color: cyan;
}
a:hover {
background-color: lightgreen;
}
a:active {
background-color: hotpink;
}

<!DOCTYPE html>
<html>
<head>
<style>
a:link {
background-color: yellow;
}
a:visited {
background-color: cyan;
}
a:hover {
background-color: lightgreen;
}
a:active {
background-color: hotpink;
}
</style>
</head>
<body>
<p><b><a href="default.asp" target="_blank">This is a link</a></b></p>
<p><b>Note:</b> a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective.</p>
<p><b>Note:</b> a:active MUST come after a:hover in the CSS definition in order to be effective.</p>
</body>
</html>
게시판 목록
퍼블리셔팁
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 947 | CSS | 8년 전 | 1572 | ||
| 946 | CSS | 8년 전 | 2241 | ||
| 945 | CSS | 8년 전 | 1749 | ||
| 944 | CSS | 8년 전 | 2175 | ||
| 943 | CSS | 8년 전 | 2245 | ||
| 942 | CSS | 8년 전 | 2212 | ||
| 941 | CSS | 8년 전 | 2027 | ||
| 940 | CSS | 8년 전 | 1768 | ||
| 939 | CSS | 8년 전 | 2272 | ||
| 938 | CSS | 8년 전 | 1593 | ||
| 937 | CSS | 8년 전 | 1673 | ||
| 936 | CSS | 8년 전 | 1788 | ||
| 935 | CSS | 8년 전 | 2390 | ||
| 934 | CSS | 8년 전 | 2470 | ||
| 933 | CSS | 8년 전 | 1825 | ||
| 932 | CSS | 8년 전 | 2283 | ||
| 931 | CSS | 8년 전 | 1863 | ||
| 930 | CSS | 8년 전 | 1894 | ||
| 929 | CSS | 8년 전 | 1821 | ||
| 928 | CSS | 8년 전 | 1522 | ||
| 927 | CSS | 8년 전 | 1569 | ||
| 926 | CSS | 8년 전 | 3134 | ||
| 925 | CSS | 8년 전 | 2104 | ||
| 924 | CSS | 8년 전 | 1727 | ||
| 923 | CSS | 8년 전 | 2139 | ||
| 922 | CSS | 8년 전 | 2169 | ||
| 921 | CSS | 8년 전 | 2351 | ||
| 920 | CSS | 8년 전 | 1676 | ||
| 919 | CSS | 8년 전 | 2516 | ||
| 918 | CSS | 8년 전 | 1823 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기