進出口創造了德國一個網站,並有對方如家堆的按鈕當我把它設置到位置問題:絕對的或固定的。但是,當我把它設置爲相對的,它的作品。有人能解釋我嗎?按鈕堆疊在一起?
CSS文件:
#top {
display: inline-block;
width: 352px;
height: 160px;
color : white;
background-color: #2D2D2D;
float: left;
font-family: century gothic;
font-size: 25px;
border: none;
margin: 0px;
position: fixed
}
和HTML文件:
<nav>
<a class="weiter" href="Home.html"><button id="top" >Home</button></a>
<a class="weiter" href="ueberuns.html">
<button id="top">Überuns</button></a>
<a class="weiter"><button id="top" id="click">Mitglieder</button></a>
<a class="weiter" href="gebiet.html"><button
id="top">UnserGebiet</button></a>
<a class="weiter" href="kontakt.html"><button id="top">Kontakt</button></a>
</nav>
能否請您爲我們提供了兩種結果的截圖? – Aenadon