修复了父div中的div,在滚动页面时删除固定,直到到达父div结束 [英] Fixed the div within the parent div, remove fixed when scroll page until reach parent div end

查看:84
本文介绍了修复了父div中的div,在滚动页面时删除固定,直到到达父div结束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想修复父母的div位置。如果父div滚动结束,子div也与父div一起滚动。例如,查看此页面

在该页面中类别div是在其父div中修复的。在页面到达父div结束时滚动页面后,子div也会滚动它们。如何创建这样的。

解决方案

试试这个 jsfiddle [ ^ ]。

++++++ [第2轮] ++++++++ +>>
http://plnkr.co/edit/ 5Dk8u2SyHKqLwAuQSsDJ?p =预览 [ ^ ]

I want to fixed the div position within their parent. If the parent div scroll end's, child div also scroll along with parent div. For example see this page
In that page a category div was fixed within their parent div. After scroll the page when it reach the parent div end, child div also scroll with them. How to create like that.

解决方案

Try this jsfiddle[^].
++++++[round 2]+++++++++
http://plnkr.co/edit/5Dk8u2SyHKqLwAuQSsDJ?p=preview[^]


这篇关于修复了父div中的div,在滚动页面时删除固定,直到到达父div结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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