나는 내비게이션 바 메신저를 만들고 있으며 텍스트를 실제 버튼에 넣거나 지금 그대로 글꼴 크기를 늘릴 수 있기를 원하며 이렇게 정의하려고했습니다 ..
navbar {
font-size: 20px;
}
<nav class="navbar">
<a href="link">Prezi</a>
</nav>
하지만 그것은 나를 위해 작동하지 않고 이유를 모르겠습니다.
이렇게 해보세요.
.navbar {
font-size: 20px;
padding: 10px;
}
.navbar a {
border: 2px solid transparent;
text-decoration: none;
color: white;
background-color: black;
padding: 10px 30px;
border-radius: 10px;
}
.navbar a:hover {
cursor: pointer;
border: 2px solid black;
background-color: white;
color: black;
}
<nav class="navbar">
<a href="link">Prezi</a>
</nav>
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다