jQuery 1.0.2

2020-05-23 06:10:44易采站长站整理

                    oHeight = e.clientHeight;
                    oWidth = e.clientWidth;
                    if ( parPos == “” || parPos == “static” )
                        e.parentNode.style.position = “static”;
                    e.parentNode.removeChild(e);
                }
            });
            return p == “height” ? oHeight : oWidth;
        }
        return jQuery.curCSS( e, p );
    },
    curCSS: function(elem, prop, force) {
        var ret;
        if (prop == ‘opacity’ && jQuery.browser.msie)
            return jQuery.attr(elem.style, ‘opacity’);
        if (!force && elem.style[prop]) {
            ret = elem.style[prop];
        } else if (elem.currentStyle) {
            var newProp = prop.replace(/-(w)/g,function(m,c){return c.toUpperCase();});
            ret = elem.currentStyle[prop] || elem.currentStyle[newProp];
        } else if (document.defaultView && document.defaultView.getComputedStyle) {
            prop = prop.replace(/([A-Z])/g,”-$1″).toLowerCase();
            var cur = document.defaultView.getComputedStyle(elem, null);
            if ( cur )