谷歌新闻,左导航CSS诡计? 或者jQuery Trick

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

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

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

这也可以在YouTube上的某些页面中完成,例如collections页面。 我建议你使用类似Firefox的firebug扩展来弄清楚他们是如何做的。 我想他们正在使用CSS和Javascript的组合。 也许就像在某个垂直位置将位置切换到fixed位置。

我快速实现了您在FF和Chrome中工作的function。 但是无法使它适用于IE,我注意到它也不适用于谷歌新闻

       
1
2
3
The moderators' questions were frequently ignored. The candidates barely looked at one another. One wore black gloves and spoke of himself repeatedly in the third person. And Andrew M. Cuomo, the Democratic candidate and the race's front-runner, at times struggled to suppress laughter...