有沒有辦法讓我根據頁面ID突出顯示菜單li?我似乎無法找到一種方法來做到這一點。突出顯示當前頁面菜單li
http://www.dawaf.co.uk/cthm/work/
<div id="header">
<h1>
<a href="http://www.dawaf.co.uk/cthm/work">
<img src="http://www.dawaf.co.uk/cthm/wp-content/uploads/2013/01/logo2.png" alt="CTHM Logo" id="logo" width="140" height="44" />
</a>
<div id="contact-details">
26 Queen Anne Road, London, E9 7AH<br />
t + 44 7912325101<br />
<a href="mailto:[email protected]">[email protected]</a>
</div>
</h1>
<div id="nav">
<span id="nav-li">
<a href="http://www.dawaf.co.uk/cthm/work/" class="work-current">Work</a>
<a href="http://www.dawaf.co.uk/cthm/studio/" class="studio-current">Studio</a>
<a href="http://cthmplus.tumblr.com/" target="_blank">CTHM+</a>
<a href="https://twitter.com/hello_cthm" target="_blank">
<img src="http://www.dawaf.co.uk/cthm/wp-content/uploads/2013/01/twitter.png" alt="Twitter" width="13" height="13">
</a>
</span>
</div>
</div>
<div id="content">
您首先需要爲顯示的錨點指定一個「活動頁面」類。例如,您可以使用'.activepage {color:green;}'的樣式。 – Omega