页面调整滚动条位置固定问题

时间:2013-10-05 06:38:57

标签: scroll resize window

当页面在Chrome页面中调整大小时,滚动条在此处移动是我的页面链接:

enter $( window ).resize(function() {
$("section").scrollTo(screenNames[scrollIndex]);
$( "nav li a" ).removeClass('current');
$( "nav li a:eq("+scrollIndex+")" ).addClass('current');
if($(document).height()<400) {
    $("nav a").css("height","2px");
} else if($(document).height()<500) {
    $("nav a").css("height","4px");
} else if($(document).height()<600) {
    $("nav a").css("height","6px");
} else if($(document).height()<700) {
    $("nav a").css("height","8px");
} else {
    $("nav a").css("height","18px");
}}); 

部分{position:fixed;身高:100%;宽度:100%;上:5.75em; overflow-y:auto; overflow-x:hidden;的z-index:1; }

0 个答案:

没有答案
相关问题