简体   繁体   English

位于父div内的浮动菜单

[英]Floating Menu that stays within parent div

Hello I have a JavaScript menu that I will like to scroll with the user, I have tried to use the top function but that locks the menu to the top of the screen. 您好,我有一个JavaScript菜单,我想与用户一起滚动,我尝试使用top函数,但是将菜单锁定在屏幕顶部。 Is there anyway to have a fixed menu float within a parent div? 无论如何,父div中是否有固定的菜单浮动? So once you scroll down it will go to the top of the screen? 因此,一旦向下滚动,它将转到屏幕顶部?

You can see the menu here: http://www.jowa-usa.us/jowaabproducts.cfm 您可以在此处查看菜单: http : //www.jowa-usa.us/jowaabproducts.cfm

You need to search for a sticky sidebar plugin since that will do exactly what you are looking for. 您需要搜索粘性的侧边栏插件,因为它可以完全满足您的需求。 Here's one that seems pretty good. 看起来不错。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM