作爲標題說明我的鏈接不工作在我的導航欄除了最後一個,他們都是相同的代碼,所以我不明白爲什麼他們不會工作。導航欄鏈接將不起作用
這裏是我的代碼:
<ul class="ulfirst">
<li id="lithree"><a href="GCPD.html" id="athird">We work very closely with the GCPD</a></li>
<li id="lisecond"><a href="Wayneenterprises.html" id="athird">Here is information about how we work</a> </li>
<li id="lifour"><a href="Publicrecords.html" id="athird">Public Database</a></li>
</ul>
下面是關於CSS:
#ulfirst {
list-style-type:none;
margin:0;
padding:0;
overflow: hidden;
}
#lisecond {
position: fixed;
bottom: 0;
width: 100%;
text-align: center;
}
#lithree {
position: fixed;
bottom: 0 ;
width: 100%;
text-align: left;
left: 30%;
}
#lifour {
position: fixed;
bottom: 0;
width: 100%;
text-align: right;
right: 25%
}
編輯:讓我換個話題。我有一個導航欄,只有欄上的最後一個鏈接(總是最後一個,不一定是publicrecords)。其他兩個鏈接不起作用,因爲在鼠標懸停時甚至不會改變。 – user3610983