我有这个问题,我不能在我的生活中尝试删除这个(li)标签中的空白,下面我已经包含了一个屏幕截图,我想要做的是删除灰色菜单之前的白色栏,以及使整个菜单栏与底部的灰色栏对齐。
CSS
.menu ul {
list-style: none;
padding: 0;
margin: 0;
}
.menu li {
float: left;
margin: 0 0.5em 0 0.5em;
left: 0px;
padding: 0;
list-style: none;
}
.menu li a {
float: left;
display: inline-block;
width: 161.3px;
text-decoration: none;
text-align: left;
font-family: 'MyriadPro', sans-serif;
font-size: .875em;
color: #FFF;
height: 1.2em;
}
#MenuGreyBar li a{
display: block;
width: 200px;
list-style: none;
left: 0px;
height: 1.2em;
float: left;
margin: 0;
}
HTML
<div class="menu">
<div>
<ul id="MenuGreyBar">
<li style="left: 0px;">
<a href="#" class="bgGrey"> </a>
</li>
</ul>
</div>
<ul>
<li>
<a href="about_us.html" class="bgLightBlue">About Us</a>
</li>
<li >
<a href="Help_Support.html" class="bgMuddyGreen">Help & Support</a>
</li>
<li >
<a href="Law_Info.html" class="bgGreen">Law & Information</a>
</li>
<!-- ... There are a few more. -->
</ul>
</div>
图片:(它没有让我嵌入)
http://db.tt/tcSr5kGv