我看到你把A'(在你的LI里面)显示为块,所以 就可以了。由于你使用了坚实的背景,添加底部 边框(在#666中)不应该太明显了。 Ah, I think I remember that one. Excerpt from one of my stylesheets: /* Workaround time: when faced with <li><span>...</span></li>, withdisplay:block for SPAN, IE doubles LI''s line-height, unless aborder-bottom is set. */* HTML .navbar UL LI {border-bottom: 1px #eee solid;} I see you have made your A''s (inside your LI''s) displayed as blocks, soit could be that. Since you use a solid background, adding a bottomborder (in #666) shouldn''t be too visible a hack. 此外,对于奖励积分,在IE6和IE7中,使用 地址{}设置的文本显示为一列单词,这不是我想要的b $ b b(b)我想要一条线)。我怀疑我不应该使用 float:left;但我不确定为什么效果会发生。 Also, for bonus points, in both IE6 and IE7, the text styled withaddress { } shows up as a column of words, which was not what Iintended (I wanted a single line). I suspect I shouldn''t have usedfloat: left; but I am not sure why the effect happens. 可能是因为你没有为那个浮点数指定宽度?我也看到了 这里不需要浮动,顺便说一句;-) HTH, - DanielDéchelotte http://yo.dan.free.fr / 这篇关于应该继承ul的保证金风格吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 11-01 05:51