本文介绍了元素根据滚动浮动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何使ELEMENT根据scroll浮动.例如,当我向下滚动时,position:fixedleft:0的元素将慢慢下降到可见的左上方区域.

I would like to know how can make make an ELEMENT float according to scroll .For example , when I scroll down , the element that is position:fixed and left:0 will slowly come down into viewable top left area.

这可以使用jQuery完成吗?

Can this be done using jQuery?

推荐答案

您要搜索的菜单/栏的浮动类型有点陈旧.为什么不尝试这样的事情

the floating type of menu/bar you are searching for is little old style. Why dont you try something like this

固定的浮动元素

http://jsfiddle.net/dueWG/9/

http://static.jqueryfordesigners.com/demo/fixedfloat.html

这篇关于元素根据滚动浮动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 14:00