scrollTop兼容

var scrollTop = document.documentElement.scrollTop || document.body.scrollTop

原文地址:https://www.cnblogs.com/hehuiqiong/p/12618143.html