0
我需要一個我正在創建的頁面的導航菜單,我想在有人點擊它時更改活動鏈接。我在活動鏈接上已經有了樣式,但我不知道如何改變它。有人在盤旋時發生變化也會很好。 Javascript是沒問題的。謝謝。我需要爲一個頁面創建一個導航菜單
菜單
<div class="row">
<div class="small-12 medium-12 large-3 columns">
<a class="logo" href="/">Saul Designs</a>
</div>
<div class="large-7 columns">
<nav class="main-nav show-for-large-up">
<ul>
<!-- below this is what i need to have change-->
<li><a class="active" href="#start">START</a></li>
<li><a href="#about">ABOUT</a></li>
<li><a href="#work" >WORK</a></li>
<li><a href="#contact">CONTACT</a></li>
<!-- and above this -->
</ul>
</nav>
</div>
<div class="large-2 columns">
<div class="normal-button alternate show-for-large-up">
<a href="mailto:[email protected]">HIRE ME</a>
</div>
</div>
</div>
可能對您有幫助嗎? http://stackoverflow.com/questions/20767161/keep-link-active-after-clicked-using-same-page-anchors –