我是使用Menubar插件进行导航的WordPress网站上的CSS新手.我已经能够改变我的CSS用于配色方案,居中和字体的东西,但我不能为我的生活弄清楚为什么围绕<ul>菜单的div 在底部有额外的6个像素.我已经尝试在几个地方将边距设置为0,改变了line-height...但没有任何作用.

您可以在此处查看该网站.我正在使用的主题是Twenty Eleven的孩子.这是(我认为)重要的CSS:
#access div {
margin: 0 0 0 0;
}
#access {
background: #773736;
clear: both;
display: block;
margin: 0 auto;
width: 100%;
text-align: center;
}
#access ul {
font-size: 13px;
list-style: none;
margin: 0 0 0 -0.8125em;
padding-left: 0;
display: inline-block;
font-weight: normal;
}
#access li {
float: left;
position: relative;
text-align: left;
}
#access a {
color: #eee;
display: inline-block;
line-height: 3.333em;
padding: 0 1.2125em;
text-decoration: none;
font-weight: normal;
}
Run Code Online (Sandbox Code Playgroud)
我该怎么做才能摆脱这个额外的高度?
事实证明这是一个line-height问题:
#access {
background: #773736;
clear: both;
display: block;
margin: 0 auto;
width: 100%;
text-align: center;
line-height: 12px;/*this fixes it*/
}
Run Code Online (Sandbox Code Playgroud)
还应该指出它是从身体的1.625继承线高(这里应该是单位)