Superfish 菜单有问题
参见链接: http://www.advertisesolutions.com/beta/4kitchens.html
无法理解为什么有主菜单和子菜单下面有一个间隙,并且“配置文件”->“配置文件设置”菜单的高度有问题。
See link:
http://www.advertisesolutions.com/beta/4kitchens.html
Cannot understand why there is a gap below the main menu and the submenus and the menu for Profile->Profile Setting has a problem with the height.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
配置文件设置存在高度问题,因为您将其设置为 33px 高度,并且它跨越两行...
将 .main-menu li 更改为:
并将 .main-menu li:hover 更改为:
要删除间隙,将:
}
更改为:
}
您的最高值太大,并且子菜单的位置太低。
The profile setting has a height problem because you set it to 33px height and it spans two lines...
change .main-menu li to:
and .main-menu li:hover to:
To remove the gap change:
}
to:
}
Your top value was just too large and positioning the sub menu too low.
像这样的
你想要定位菜单的第二层,然后相应地更改 top:-10px 值,直到间隙消失。
负数很重要! (间隙修正为负值,重叠为正值)
Something like this
You want to target the second level of your menu, then change the top:-10px value accordingly until gap is gone.
Negative number is important! (negative for gap fixes, positive for overlaps)