让浏览器滚动条居中

$(function(){
    var left;
    left = ($(document).width() - $('body').width())/2;    
    $(document).scrollLeft(left);
})

  

原文地址:https://www.cnblogs.com/wqing/p/3523239.html