Menu/Topbar 滚动变化 up/down
Menu/Topbar changes on scroll up/down
我搜索了所有地方,但找不到当用户向下滚动时网站的菜单选项发生变化的解决方案。有谁知道如何做到这一点(最好是在 Foundation 中)?
你的问题很宽泛 - 你可能想解释一下你想要什么。但是我认为您可能正在寻找 'sticky' header 效果,例如:http://themenectar.com/demo/salient/ ?
如果是这种情况,基金会论坛上的 post ( http://foundation.zurb.com/forum/posts/18987-sticky-header-effect ) 提到您可以使用 class 'sticky' 来达到相同的效果。
In Foundation the same effect can be achieved by wrapping the navbar in a div class="sticky".
As soon as an element with the "sticky" class hits the top of the viewport it gets the class "fixed", which takes care of the positioning. You can also use this class to resize the "stuck" navbar etc.
我搜索了所有地方,但找不到当用户向下滚动时网站的菜单选项发生变化的解决方案。有谁知道如何做到这一点(最好是在 Foundation 中)?
你的问题很宽泛 - 你可能想解释一下你想要什么。但是我认为您可能正在寻找 'sticky' header 效果,例如:http://themenectar.com/demo/salient/ ?
如果是这种情况,基金会论坛上的 post ( http://foundation.zurb.com/forum/posts/18987-sticky-header-effect ) 提到您可以使用 class 'sticky' 来达到相同的效果。
In Foundation the same effect can be achieved by wrapping the navbar in a div class="sticky".
As soon as an element with the "sticky" class hits the top of the viewport it gets the class "fixed", which takes care of the positioning. You can also use this class to resize the "stuck" navbar etc.