<style type="text/css">
<!--
a:link {
color: #333333;
}
a:visited {
color: #333333;
}
a:hover {
color: #333333;
}
a:active {
color: #333333;
}
-->
</style>
<!--
a:link {
color: #333333;
}
a:visited {
color: #333333;
}
a:hover {
color: #333333;
}
a:active {
color: #333333;
}
-->
</style>
이거 적용시켰는데요 그런데 전체 링크색상이랑 다바껴요
a때문인거같은데 다른글씨넣고 id불러오기도안되던데
CSS이름 BT로 바꿀려고하는데 어떻에하나요?;;
css는 안배우고 바로 php배워서 먼 소린지 이해가안가요~ ㅠㅠ;;
부탁드려요
댓글 6개
13년 전
설명
지금보시는바와 같이 <body> 부분에 전체 링크색상을지정해주신것인지요?
개별로 불러오려면 아이디나 클래스에 개별지정해주어야할겁니다.
각속성의 설명
A:link -> 링크가 걸려있는 경우
A:visited -> 링크클 방문했을 경우
A:active -> 방문중인 링크란 의미
A:hover -> 링크에 마우스를 가져갔을때
지금보시는바와 같이 <body> 부분에 전체 링크색상을지정해주신것인지요?
개별로 불러오려면 아이디나 클래스에 개별지정해주어야할겁니다.
각속성의 설명
A:link -> 링크가 걸려있는 경우
A:visited -> 링크클 방문했을 경우
A:active -> 방문중인 링크란 의미
A:hover -> 링크에 마우스를 가져갔을때
13년 전
답변부탁드려요^^ 해결안되었어요 이해가^^;;
aequum
13년 전
<!doctype html>
<html>
<head></head>
<body>
<style>
a:link { color:red;}
a:visited { color:red; }
a:hover { color:red;}
a:active { color:red;}
a.some:link { color:green;}
a.some:visited { color:green;}
a.some:hover { color:green;}
a.some:active { color:green;}
.test a:link { color:blue;}
.test a:visited { color:blue;}
.test a:hover { color:blue;}
.test a:active { color:blue;}
</style>
<a href="#">red</a>
<a href="#" class="some">green</a>
<span class="test"><a href="#">blue</a></span>
</body>
</html>
---
아마도 이런 것? 하나씩은 위애 항해님 리플 참고 ㅎ
예제로 확인해보세요....
<html>
<head></head>
<body>
<style>
a:link { color:red;}
a:visited { color:red; }
a:hover { color:red;}
a:active { color:red;}
a.some:link { color:green;}
a.some:visited { color:green;}
a.some:hover { color:green;}
a.some:active { color:green;}
.test a:link { color:blue;}
.test a:visited { color:blue;}
.test a:hover { color:blue;}
.test a:active { color:blue;}
</style>
<a href="#">red</a>
<a href="#" class="some">green</a>
<span class="test"><a href="#">blue</a></span>
</body>
</html>
---
아마도 이런 것? 하나씩은 위애 항해님 리플 참고 ㅎ
예제로 확인해보세요....
JMoon
13년 전
어짜피 링크나 일반텍스트나 모든 색깔을 똑같이 하려면
<div style="color:#333;">글자를 넣으세요</div>
이런식으로 하면 편해요~
<div style="color:#333;">글자를 넣으세요</div>
이런식으로 하면 편해요~
aequum
13년 전
링크는 안되죠. :hover 같은 pseudo-class는 부모 요소의 style 속성에 우선해요
aequum
13년 전
아 죄송합니다. 다시보니 '<a style="color:red">글자색</a>'를 말하는 것 같네요. 편하다는 말씀에... 블록요소인지라 부모에서 설정하면 영향받는다는 글로 이해했네요.
등장하는 anchor 요소가 많다면... 하나씩 다 style을 설정해야 하기에... 다소...
등장하는 anchor 요소가 많다면... 하나씩 다 style을 설정해야 하기에... 다소...
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7830 | 10년 전 | 461 | ||
| 7829 |
|
10년 전 | 648 | |
| 7828 | 10년 전 | 572 | ||
| 7827 | 10년 전 | 474 | ||
| 7826 | 10년 전 | 496 | ||
| 7825 | 10년 전 | 528 | ||
| 7824 | 10년 전 | 487 | ||
| 7823 | 10년 전 | 429 | ||
| 7822 | 10년 전 | 405 | ||
| 7821 | 10년 전 | 347 | ||
| 7820 | 10년 전 | 370 | ||
| 7819 |
|
10년 전 | 768 | |
| 7818 | 10년 전 | 428 | ||
| 7817 | 10년 전 | 607 | ||
| 7816 | 10년 전 | 446 | ||
| 7815 | 10년 전 | 640 | ||
| 7814 | 10년 전 | 478 | ||
| 7813 | 10년 전 | 434 | ||
| 7812 | 10년 전 | 442 | ||
| 7811 | 10년 전 | 419 | ||
| 7810 | 10년 전 | 622 | ||
| 7809 | 10년 전 | 553 | ||
| 7808 | 10년 전 | 434 | ||
| 7807 | 10년 전 | 443 | ||
| 7806 |
프로그래머7
|
10년 전 | 1364 | |
| 7805 | 10년 전 | 1309 | ||
| 7804 |
zahir1312
|
10년 전 | 805 | |
| 7803 |
|
10년 전 | 1405 | |
| 7802 | 10년 전 | 506 | ||
| 7801 | 10년 전 | 885 | ||
| 7800 | 10년 전 | 1111 | ||
| 7799 | 10년 전 | 594 | ||
| 7798 | 10년 전 | 541 | ||
| 7797 | 10년 전 | 561 | ||
| 7796 | 10년 전 | 397 | ||
| 7795 | 10년 전 | 549 | ||
| 7794 | 10년 전 | 591 | ||
| 7793 | 10년 전 | 1089 | ||
| 7792 | 10년 전 | 517 | ||
| 7791 | 10년 전 | 611 | ||
| 7790 | 10년 전 | 534 | ||
| 7789 |
fbastore
|
10년 전 | 1486 | |
| 7788 | 10년 전 | 591 | ||
| 7787 | 10년 전 | 448 | ||
| 7786 | 10년 전 | 654 | ||
| 7785 | 10년 전 | 628 | ||
| 7784 | 10년 전 | 692 | ||
| 7783 | 10년 전 | 512 | ||
| 7782 | 10년 전 | 536 | ||
| 7781 | 10년 전 | 938 | ||
| 7780 | 10년 전 | 847 | ||
| 7779 | 10년 전 | 799 | ||
| 7778 | 10년 전 | 392 | ||
| 7777 | 10년 전 | 506 | ||
| 7776 | 10년 전 | 500 | ||
| 7775 | 10년 전 | 437 | ||
| 7774 | 10년 전 | 647 | ||
| 7773 | 10년 전 | 403 | ||
| 7772 | 10년 전 | 778 | ||
| 7771 | 10년 전 | 436 | ||
| 7770 | 10년 전 | 674 | ||
| 7769 | 10년 전 | 434 | ||
| 7768 | 10년 전 | 655 | ||
| 7767 | 10년 전 | 1207 | ||
| 7766 | 10년 전 | 536 | ||
| 7765 | 10년 전 | 595 | ||
| 7764 |
잘살아보자
|
10년 전 | 455 | |
| 7763 |
|
10년 전 | 1503 | |
| 7762 |
Tosea
|
10년 전 | 1088 | |
| 7761 | 10년 전 | 692 | ||
| 7760 |
잘살아보자
|
10년 전 | 765 | |
| 7759 |
잘살아보자
|
10년 전 | 603 | |
| 7758 |
잘살아보자
|
10년 전 | 660 | |
| 7757 | 10년 전 | 1289 | ||
| 7756 |
ITBANK
|
10년 전 | 1290 | |
| 7755 | 10년 전 | 1945 | ||
| 7754 | 10년 전 | 1104 | ||
| 7753 | 10년 전 | 922 | ||
| 7752 | 10년 전 | 1423 | ||
| 7751 |
잘살아보자
|
10년 전 | 581 | |
| 7750 |
잘살아보자
|
10년 전 | 510 | |
| 7749 |
잘살아보자
|
10년 전 | 535 | |
| 7748 |
잘살아보자
|
10년 전 | 561 | |
| 7747 |
잘살아보자
|
10년 전 | 639 | |
| 7746 |
잘살아보자
|
10년 전 | 701 | |
| 7745 |
잘살아보자
|
10년 전 | 951 | |
| 7744 |
잘살아보자
|
10년 전 | 441 | |
| 7743 | 10년 전 | 972 | ||
| 7742 |
starbros
|
10년 전 | 866 | |
| 7741 |
잘살아보자
|
10년 전 | 708 | |
| 7740 |
잘살아보자
|
10년 전 | 598 | |
| 7739 |
잘살아보자
|
10년 전 | 487 | |
| 7738 |
잘살아보자
|
10년 전 | 564 | |
| 7737 |
잘살아보자
|
10년 전 | 542 | |
| 7736 |
잘살아보자
|
10년 전 | 562 | |
| 7735 |
잘살아보자
|
10년 전 | 899 | |
| 7734 |
잘살아보자
|
10년 전 | 454 | |
| 7733 |
잘살아보자
|
10년 전 | 566 | |
| 7732 |
잘살아보자
|
10년 전 | 731 | |
| 7731 |
잘살아보자
|
10년 전 | 655 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기