zoukankan      html  css  js  c++  java
  • 第一屏层固定位置,滚动页面层固定在源位置

    var top = $(document).scrollTop();
    if (($.browser.msie == true) && ($.browser.version == 6.0)) {                
        if (top > 430) $("#navbox_left").css({ position: "relative", top: top - 430 });
           //$("#contop_title").css({ font-family:"宋体" });
        } else if (($.browser.msie == true) && ($.browser.version == 7.0)) {
            if (top > 430) $("#navbox_left").css({ left: 0, top: top - 430 });
        } else {
            if (top > 430) $("#navbox_left").css({ position: "fixed", top: 0,left:"auto" });
             // $("#contop_title").css({ font-family: "Microsoft YaHei" });
        }
        if (($.browser.msie == true) && ($.browser.version == 7.0)) {
            if (top <= 430) $("#navbox_left").css({ position: "absolute", top: 0, left: 0 });
        } else if (top <= 430) $("#navbox_left").css({ position: "absolute", top: 0 });
  • 相关阅读:
    溢出省略号
    自定义字体
    jquery实现上一页下一页
    集成学习理解
    常用命令-python篇
    python 多进程和多线程
    10预处理命令上
    9函数
    8指针2
    7指针1
  • 原文地址:https://www.cnblogs.com/aha/p/1953078.html
Copyright © 2011-2022 走看看