how to scroll 2 divs at the same time with iScroll
问题 I have 2 divs that both uses iScroll. Now I would like both divs to scroll when one of them are scrolled. I want them to scroll simultaneously Is this possible? 回答1: You can use scrollTo method to scroll the second div at a specified position on scrolling any div. It takes three arugments out of which timeout is optional. scrollTo(x, y, timeout) - scrolls to any x,y location inside the scrolling area. 回答2: Try structuring the div as follows : <div id=wrapper> <div id="scroller"> <div id="div1