こんにちは私は「簡単な」質問を申し訳なく思っています。それはウェブサイトからこの言い回しをそのまま受けたものです。私はli
リストを持っているので、最初のものは黄色で、他の要素は白くします。私は実際のプロジェクトli a { color: white
の私のルールの1つを持っているが、私はかなりこの特定のクラスは、そのルールを無効にする必要がありますか?どんな助けでも感謝します、ありがとう。アクティブページが動作しない
.active{
\t color: yellow;
}
#subnav {
\t height: 10%;
\t text-align: center;
}
#subnav ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: green;
\t text-align: center;
\t width: 100%;
\t font-weight: bold;
\t
}
#subnav li {
display: inline-block;
}
#subnav li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
#subnav li a:hover {
color: yellow;
}
<div id="subnav">
<ul>
\t \t \t \t <li> <a class="active" href="#overview">Overview </a></li>
\t
\t \t </ul>
</div>
問題がありますか、または説明が必要ですか? –