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>
답변 2
<div id="menu"></div>
객체를 id로 선언하셨으면
#menu {font-family: "나눔고딕";color:#000; font-size:14px;} /* 홈짱닷컴 스타일*/
<div class="menu"></div>
객체를 class로 선언하셨으면
.menu {font-family: "나눔고딕";color:#000; font-size:14px;} /* 홈짱닷컴 스타일*/
<style>
css의 맨 앞
에
menu 는 태그에 적용하는 방식입니다.
class 에 적용하시려면
.menu
로 . 을 추가해야 합니다.
답변을 작성하시기 전에 로그인 해주세요.