css입문자입니다.
본문
이게 맞는 문법인가요?
<style>
menu {font-family: "나눔고딕";color:#000; font-size:14px;}
a:link {
color: #000;
text-decoration: none;
}
a:visited {
color: #000;
text-decoration: none;
}
a:hover {
color: #000;
text-decoration: none;
}
a:active {
color: #000;
text-decoration: none;
}
</style>
폰트에 볼드를 주고싶고 각이벤트에 동일한폰트(볼드, 14px)에 색상만 바꾸고 싶습니다. 방법이 있나요?
답변 1
<style>
.menu {font-family: "나눔고딕";color:#000; font-size:14px;
font-wieght:bold; /* 여기를 추가하세요*/
}
a:link {
color: #000;
text-decoration: none;
}
a:visited {
color: #000;
text-decoration: none;
}
a:hover {
color: #000;
text-decoration: none;
}
a:active {
color: #000;
text-decoration: none;
}
</style>
그리고, 사용하실 태그가
사용하실 태그의 ID , Class의 차이는
아래 URL을 참고하세요
!-->
답변을 작성하시기 전에 로그인 해주세요.