0

http://www.pcdconsultancy.co.uk/

Im having trouble with my menu. It appears to have at least a couple of pixels bigger on Firefox than IE or chrome, can someone advise me what the appears to be? ive tried to tweak it but it seems to still be out.

My menu css is :

#headermenu { margin-top: 9px; margin-left: 80px;}
#headermenu ul {background: #efefef; 
padding: 0px;
margin: 0;
list-style: none;
display: inline-table;
 }
#headermenu ul li {
float: left;
background: -moz-linear-gradient(top, #999999 0%, #3a3a3a 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#999999), color-stop(100%,#3a3a3a)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #999999 0%,#3a3a3a 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #999999 0%,#3a3a3a 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #999999 0%,#3a3a3a 100%); /* IE10+ */
 background: linear-gradient(to bottom, #999999 0%,#3a3a3a 100%); /* W3C */
 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#999999', endColorstr='#3a3a3a',GradientType=0 ); /* IE6-9 */
 border-left: 1px solid #666666;
 border-right: 1px solid #000;
 border-top: 1px solid #999999;
 border-bottom: 1px solid #999999;
 }
#headermenu ul li:hover {}
#headermenu ul li a {display: block; color: #fff; text-decoration: none;font: 15px Arial; padding: 7px 20px; /* Old browsers */}
4

1 回答 1

1

如果您向 #headermenu ul li a 元素添加 line-height 声明,则应该可以解决问题。请参见下面的代码:

#headermenu ul li a {line-height: 15px;}

我保证这将解决您的问题。

谢谢!

于 2013-05-09T20:02:24.383 回答