zhangxinxu/quiz

第一题

liulyu opened this issue · 0 comments

var topBtn = document.getElementById('bakcTop');
window.onscroll=function(){
var top = document.documentElement.scrollTop || document.body.scrollTop;
var height = document.documentElement.clientHeight;
if(top>=height){
topBtn.style.display="block"
}else{
topBtn.style.display="none"
}
}