谷歌新闻,左导航CSS诡计?或者jQuery Trick [英] Google News, Left Nav CSS Trick? or jQuery Trick

查看:83
本文介绍了谷歌新闻,左导航CSS诡计?或者jQuery Trick的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的。查看Google新闻...在向上和向下滚动页面时注意左侧导航。

I'm new at this. Check out Google News... notice the left nav when scrolling up and down the page.

看看如何滚动一点点然后粘在顶部在它消失之前的页面?

See how is scrolls for a little bit but then sticks to the top of the page before it goes away?

有关如何完成的任何想法? jQuery和CSS可以复制吗?如果是这样,任何提示?

Any ideas on how that is done? Can jQuery and CSS replicate that? If so, any tips?

推荐答案

这也是在YouTube上的某些页面上完成的,例如收藏页面。我建议你使用Firefox的firebug扩展程序来弄清楚它们是如何做的。我想他们正在使用CSS和Javascript的组合。也许就像在某个垂直位置将位置切换到固定一样。

This is also done on YouTube in certain pages such as the favorites page. I recommend you use something like Firefox's firebug extension to figure out how they're doing it. I imagine they are using a combination of CSS and Javascript. Perhaps something like, toggling the position to fixed when at a certain vertical position.

这篇关于谷歌新闻,左导航CSS诡计?或者jQuery Trick的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆