Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个菜单栏,其菜单li在鼠标悬停时向下延伸。div它在此菜单栏 div 下方侧向推动 a 。但我希望那些向下伸展li的 s 显示在提到的 div 上,而不是将其推向一边。
li
div
你可以看看我想在这里说什么。
有人有解决方案吗?
http://jsfiddle.net/bpu2r/
我只是添加float: left;到菜单和clear: both;容器中。
float: left;
clear: both;