Css Firefox和<;李>;垂直线形

Css Firefox和<;李>;垂直线形,css,firefox,html-lists,cross-browser,Css,Firefox,Html Lists,Cross Browser,我正在尝试制作一个与屏幕顶部齐平的水平菜单栏。它在Chrome中运行良好,但在Firefox中,LIs被切断了一半 如何使其正常工作 .topmenu li:hover a, .topmenu a:hover { position:absolute; display:inline-block; width:inherit; height:30px; background:inherit; text-align:center; } 那应该对你有用。只需将绝对位置添加到这一部分。在Fir

我正在尝试制作一个与屏幕顶部齐平的水平菜单栏。它在Chrome中运行良好,但在Firefox中,LIs被切断了一半

如何使其正常工作

 .topmenu li:hover a, .topmenu a:hover { position:absolute; display:inline-block; 
  width:inherit; height:30px; background:inherit; text-align:center; }

那应该对你有用。只需将绝对位置添加到这一部分。

在Firefox中它仍然被切断,只是没有那么多。而且它现在在Chrome中的位置太低了。