我有一个主菜单,在HTML代码中,它的顺序正确,但在浏览器中查看时,它是相反的.为什么?
HTML:
<div class="header">
<img src="images/JTS_1_B_FL31.png" alt="J.T.S Logo" class="logo" />
<ul class="menu">
<li class="current"><a href="index.php">Home</a></li>
<li><a href="services.php">Services</a></li>
<li><a href="support.php">Support</a></li>
<li><a href="contact.php">Contact Us</a></li>
<li><a href="myaccount/">My Account</a></li>
</ul>
</div>
Run Code Online (Sandbox Code Playgroud)
CSS:
.header{
width: 100%;
height: 30px;
background-color: #1D242D;
}
.logo{
padding: 5px 0 0 5px;
float: left;
}
.menu{
float: right:
}
li{
display: inline;
list-style: none;
float: right;
padding: 5px 5px 7px 5px;
}
Run Code Online (Sandbox Code Playgroud)
截图:

| 归档时间: |
|
| 查看次数: |
1209 次 |
| 最近记录: |