7

好的,这是一个例子:http: //jsfiddle.net/jGLvk/405/

如果您将鼠标悬停在 9012 菜单上,您将切下绝对的下拉子菜单。从其任何父项中删除位置:绝对或溢出:隐藏:您将拥有正常工作的下拉菜单。

“Overflow-y:visible” 只会生成滚动条而不是显示菜单。

请帮我!在如此棘手的祖先中,我需要一个常规的超级鱼下拉菜单。

谢谢!

4

1 回答 1

5

Here, take a look. I'm not sure what the overflow:hidden is for, but would it work applied to the div uland not the div? If so, well do it, and set the position: relative on the div. Take a look -> http://jsfiddle.net/jGLvk/407/

Since the absolutely positioned elements becomes relative to the div, it ignores the overflow:hidden; set on the ul.

于 2012-07-03T21:06:13.490 回答