zoukankan      html  css  js  c++  java
  • jquery 支持ie6下position为fixed的方法

    <!--[if lte IE 7]>
    <script type="text/javascript">
    (function($) { 
        $.fn.pozFixed = function(params) { 
            var defaults = { 
                top : 400, 
                left : '50%',
                interval:100
            }; 
            defaults = $.extend(defaults,params);     
            return this.each(function(i,o) { 
                var $this = $(this); 
                this.fixPosition = function() { 
                var st = $().scrollTop();  
                    $this.css({
                        top:st + defaults.top,
                        left:'50%'
                    });               
                };
                $this.css({position:'absolute',top:defaults.top,left:"50%"}); 
                setInterval(this.fixPosition,defaults.interval); 
            });
        };
    })(jQuery);
    </script>
    <![endif]-->
    http://be-evil.org/post-116.html
  • 相关阅读:
    Docker
    Alfred Workflow
    AWS Lambda
    XPath
    WebMagic
    Splash
    Selenium
    代理服务器
    JSONPath
    Sqlserver 查询分组 记录
  • 原文地址:https://www.cnblogs.com/oneroom/p/2194550.html
Copyright © 2011-2022 走看看