0

我有一些让我感到困惑的 JavaScript。

我想将“版权”css 类(div)放在包含 div 的底部 - 在我的页面底部。

if(thisRatio>=0 && thisRatio<=1){
            $(this).css("background-position", "50% " + (90-thisRatio*400) + "px");
            $(".black-shield", $(this)).css("opacity", Math.min(0.6, Math.max(0,thisRatio*4-1.8)));
            if(thisAbsPos<-660 && thisAbsPos>-1350){
                $(".copyright", $(this))
                    .css("margin-top", 800 + (-660 - thisAbsPos))
                    .css("margin-bottom", 600 - (-660 - thisAbsPos));
            }else if(thisAbsPos<=-1350){

                $(".copyright", $(this))
                    .css("margin-top", 800 + (-660 +1350))
                    .css("margin-bottom", 600 - (-660 +1350));            
            }else if(thisAbsPos>=-660){

            }
        }

任何帮助,将不胜感激。

4

0 回答 0