안녕하세요?
최신글 스킨을 수정하고 있는데
제목에 <a href="<?php echo $list[$i]['href'];?>"> 이런 식으로 해당글로 링크를 걸었더니 폰트 색깔이 검정색으로 고정이 되어버립니다.
요소 검사를 해보니 default.css 의 22번째 줄때문인 것 같습니다.
Copy
a:link, a:visited {color:#000;text-decoration:none}a:hover, a:focus, a:active {color:#000;text-decoration:underline}
그렇다고 여기를 수정해보니 게시판 목록이 수정한 색갈로 다 바뀌어 버립니다.
도움좀 주시면 정말 감사하겠습니다.
답변 2개 / 댓글 1개
채택된 답변
+20 포인트
ddalgiya
2015-03-26 (목) 03:58:43
<a class="links" href="<?php echo $list[$i]['href'];?>">
a 태그에 클래스나 아이디를 설정해주고, css 에
a > .links:link , .links:visited {color:~~; text-decoration:none}
a > .links:hover , .links:focus, .links:active {color:~~; text-decoration:underline}
color 부분 변경하여 추가 해주면 됩니다.
답변에 대한 댓글 1개
잘되야될텐데
2015-03-26 (목) 12:31:00
잘되야될텐데
2015-03-26 (목) 13:09:16
a {color:white } 이렇게 했더니 해결이 되었습니다. 감사합니다.
답변을 작성하려면 로그인이 필요합니다.
css 적어주신 것 다 복사해서 ~~ 부분만 white로 바꿔도 잘 안됩니다.
.links:link .links:visited {color:white !important; text-decoration:none}
.links:hover .links:focus .links:active {color:white !important; text-decoration:underline}
이렇게 적어도 잘 안되구요
죄송하지만 css좀 다시 적어주실 수 있으실까요?
친절한 답변 정말 감사합니다.