出于某种原因,我的菜单项在菜单项之间一直有一些左右间距..!虽然我有点确定我没有编程这个..?
有人知道为什么我的菜单项之间有 3 个像素的间距吗?
http://jsfiddle.net/skunheal/ceFSJ/
HTML:
<div id="menu">
<ul id="nav">
<li class="page_item page-item-13">
<a href="http://www.overdelijn.nl/wp/?page_id=13">Contact</a>
</li>
<li class="page_item page-item-5 current_page_item">
<a href="http://www.overdelijn.nl/wp/">Home</a>
</li>
<li class="page_item page-item-7">
<a href="http://www.overdelijn.nl/wp/?page_id=7">Nieuws</a>
</li>
</ul>
</div>
CSS:
#nav, #subNav {
list-style: none;
padding-left: 0px;
margin: 0px;
}
#nav li, #subNav li {
display: inline;
padding:0px;
}
/* Currently selected page nav item (and parent) if applicable */
.current_page_item a,
.current_page_parent a {
text-decoration: none;
font-family:futura;;
color:#CCC;
}
.page_item a{
text-decoration: none;
font-family:futura;;
color:#FFFFFF;
display:inline-block;
background:#00C;
line-height:30px;
width:120px;
height:30px;
}
#menu{
height:30px;
text-align:center;
}
提前谢谢,问候,梅林!