By entering this site you need to consent to the use of cookies and their functional use according to this privacy policy. Cookies help us to provide the functional services of the website. Kindly read the below message of use and consent to the use.
The following cookies are stored and shared when accessing this website:
- Internal cookies for the MediaWiki site. This is used for user authentication and article modifications.
- Third-party cookies from Google providing services for Google AdSense and Google Analytics
We will never use data collected outside of the above scope.
Scrolling can be altered by modifying <em>document.body.scrollTop</em> and <em>document.body.scrollLeft</em>. However, there are drawbacks related to working with these properties:
+
可以修改<em>document.body.scrollTop</em> and <em>document.body.scrollLeft</em>调整滚动条的位置。不过使用这些属性时候,相关细节需要注意:
−
* Both properties return 0 when accessed
+
* 访问时候两个属性都会返回0。
−
* Setting one property resets the other property's scroll position
+
* 设置其中一个属性,会重置另一个属性的位置。
−
In order to set both at the same time (without either resetting to 0), use <em>window.scrollTo</em>.