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.
小提琴!!
我将如何#Index3开始滚动所有的.groups?每个 s 中总是有相同数量的lis .group。我可以使用 jQuery 获取滚动位置并将其设置到其他元素上,即使有overflow: hidden;?
#Index3
.group
li
overflow: hidden;
你可以完全按照你的建议去做......
$('#Index3').on('scroll', function() { $('.group').scrollTop($(this).scrollTop()); });