Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 防止父元素滚动?
假设我有两个元素:
<div id="parent"> <div id="child"> Hello </div> </div>
两个元素都有溢出-y:滚动。当我在里面滚动#child时,当我到达滚动的底部时,滚动#parent启动。这就是我试图阻止的。#parent当我的鼠标在元素中时,我不想滚动#child元素。
#child
#parent