Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Scroll 页面大小调整滚动条位置固定问题_Scroll_Resize_Window - Fatal编程技术网

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

Scroll 页面大小调整滚动条位置固定问题,scroll,resize,window,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) {

当在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");
}}); 
输入$(窗口)。调整大小(函数(){
$(“节”).scrollTo(屏幕名[scrollIndex]);
$(“资产净值a”).removeClass(“当前”);
$(“资产净值a:eq(“+scrollIndex+”).addClass('current');

如果($(document.height())单击左导航绿色条形圆圈时。页面导航工作正常,但页面调整页面位置将转到顶部。任何正文请帮助。。。?