Home  >  Article  >  Web Front-end  >  How to control the scrolling of an element on the page_html/css_WEB-ITnose

How to control the scrolling of an element on the page_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:48:501119browse

A page is roughly divided into two parts: left and right. The right is a list with a scroll bar. By clicking on the left page, the right list displays different information. Please tell me how to click the button on the left to bring the list on the right back to the top


Reply to discussion (solution)

obj.scrollTop =0;

obj.scrollTop=0;


Thank you very much, this is the effect
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn