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 并排在一起的页面;向下滚动时,一个向上滚动,另一个向下滚动。我怎样才能做到这一点?这个有名字吗?
参见示例:https ://lifeathome.ikea.com/virtualgreenhouse/
我认为您可以将 transform: translateY(-someHeight) 添加到应该在滚动事件上滚动到相反方向的列