开发者

Flyout menu with scrolling

开发者 https://www.devze.com 2022-12-13 06:03 出处:网络
I\'m trying to c开发者_运维问答reate a flyout menu that has scrolling build in if its larger than the screen.I can\'t seem to figure out how to do this with the native overflow-y scrolling properties.

I'm trying to c开发者_运维问答reate a flyout menu that has scrolling build in if its larger than the screen. I can't seem to figure out how to do this with the native overflow-y scrolling properties. Everytime I seem to set that overflow-y:auto then the the menu that flys out is nested within the parent div with a scroll bar.

Anyone has any ideas?

Thanks!


This is not a solution of mine, but you can try this.. it has a really nice effect and serves your purpose:

http://css-tricks.com/examples/LongDropdowns//


you should set the max-height proparty for the div otherwise it cant tell (since it is sort of absolutely positioned) where to stop, or u can set the height for older browsers, or you can javascript it, change height dynamically until it reaches a maximum

0

精彩评论

暂无评论...
验证码 换一张
取 消