我確定這是一個非常簡單的修復程序,我在某處出錯了。正如你所看到的,我還沒有添加實際的鏈接。如何將我的導航中心導航到我的導航中
CSS:
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
border-top: 1px solid #3f3f3f;
border-bottom: 1px solid #000000;
background-color: #000000;
-webkit-box-shadow: 0px -1px 0px 0px rgba(0, 17, 17, 1);
-moz-box-shadow: 0px -1px 0px 0px rgba(0, 17, 17, 1);
box-shadow: 0px -1px 0px 0px rgba(0, 17, 17, 1);
}
nav li {
float: left;
margin: 0 auto;
}
nav li a {
display: block;
color: #ededed !important;
font-family:'Tahoma','Verdana','Arial',sans-serif;
font-size: 1.1em;
padding: 17px 19px;
text-decoration: none;
}
nav li:hover {
background-color: #353535;
}
nav li a:hover {
color: #49b2c8 !important;
-webkit-transition: color 0.4s ease-in;
-moz-transition: color 0.4s ease-in;
-o-transition: color 0.4s ease-in;
-ms-transition: color 0.4s ease-in;
transition: color 0.4s ease-in;
}
HTML:
<nav>
<ul>
<li><a href="">Home</a></li>
<li><a href="">Help</a></li>
<li><a href="">About</a></li>
<li><a href="">Staff</a></li>
<li><a href="">Contact</a></li>
<li><a href="">News</a></li>
<li><a href="">Search</a></li>
<li><a href="">Shop</a></li>
</ul>
</nav>
嗯,由於某種原因, – Gorvilla
啊這是由於浮法沒有工作:離開;在導航裏 - 謝謝一堆! – Gorvilla