a 링크 스타일 질문드립니다. 채택완료
a { text-decoration:none } a:hover, a:active, a:focus { text-decoration:underline } a:link, a:visited, a:active {color:#ffffff;text-decoration:none;} a:hover { color:#8e9bb6; text-decoration:none; }
a 링크 들어간게 다 통일되는데 다르게 주려면 어떤방법으로 해야 할까요?
답변 2개
a태그에 클래스를 하나 달아주시고 그 클래스 고유의 스타일을 정의하시면됩니다.
a.some_class { text-decoration:none } a.some_class:hover, a.some_class:active, a.some_class:focus { text-decoration:underline } a.some_class:link, a.some_class:visited, a.some_class:active {color:#ffffff;text-decoration:none;} a.some_class:hover { color:#8e9bb6; text-decoration:none; }
댓글을 작성하려면 로그인이 필요합니다.
넉넉잡고 일주일 ............CSS 공부해 보세요.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인