Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/81.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
Jquery ui jquery-1.5.1.min.js和IE8_Jquery Ui_Jquery_Jquery Validate - Fatal编程技术网

Jquery ui jquery-1.5.1.min.js和IE8

Jquery ui jquery-1.5.1.min.js和IE8,jquery-ui,jquery,jquery-validate,Jquery Ui,Jquery,Jquery Validate,IE8给出了jquery 1.5.1中的一个错误:无效参数,但firefox没有 错误来自这一行:w a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}}),d.expr&&d.expr.filters&

IE8给出了jquery 1.5.1中的一个错误:
无效参数
,但firefox没有

错误来自这一行:w

 a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}}),d.expr&&d.expr.filters&&(d.expr.filters.animated=function(a){return d.grep(d.timers,function(b){return a===b.elem}).length});var ce=/^t(?:able|d|h)$/i,cf=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?d.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){d.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,g=f.documentElement;if(!c||!d.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=f.body,i=cg(f),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||d.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||d.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:d.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){d.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);d.offset.initialize();var c,e=b.offsetParent,f=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(d.offset.supportsFixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===e&&(l+=b.offsetTop,m+=b.offsetLeft,d.offset.doesNotAddBorder&&(!d.offset.doesAddBorderForTableAndCells||!ce.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),f=e,e=b.offsetParent),d.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;d.offset.supportsFixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},d.offset={initialize:function(){var a=c.body,b=c.createElement("div"),e,f,g,h,i=parseFloat(d.css(a,"marginTop"))||0,j="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";d.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),e=b.firstChild,f=e.firstChild,h=e.nextSibling.firstChild.firstChild,this.doesNotAddBorder=f.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,f.style.position="fixed",f.style.top="20px",this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15,f.style.position=f.style.top="",e.style.overflow="hidden",e.style.position="relative",this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),a=b=e=f=g=h=null,d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;d.offset.initialize(),d.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(d.css(a,"marginTop"))||0,c+=parseFloat(d.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var e=d.css(a,"position");e==="static"&&(a.style.position="relative");var f=d(a),g=f.offset(),h=d.css(a,"top"),i=d.css(a,"left"),j=e==="absolute"&&d.inArray("auto",[h,i])>-1,k={},l={},m,n;j&&(l=f.position()),m=j?l.top:parseInt(h,10)||0,n=j?l.left:parseInt(i,10)||0,d.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):f.css(k)}},d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),e=cf.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(d.css(a,"marginTop"))||0,c.left-=parseFloat(d.css(a,"marginLeft"))||0,e.top+=parseFloat(d.css(b[0],"borderTopWidth"))||0,e.left+=parseFloat(d.css(b[0],"borderLeftWidth"))||0;return{top:c.top-e.top,left:c.left-e.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&(!cf.test(a.nodeName)&&d.css(a,"position")==="static"))a=a.offsetParent;return a})}}),d.each(["Left","Top"],function(a,c){var e="scroll"+c;d.fn[e]=function(c){var f=this[0],g;if(!f)return null;if(c!==b)return this.each(function(){g=cg(this),g?g.scrollTo(a?d(g).scrollLeft():c,a?c:d(g).scrollTop()):this[e]=c});g=cg(f);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&g.document.documentElement[e]||g.document.body[e]:f[e]}}),d.each(["Height","Width"],function(a,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?parseFloat(d.css(this[0],e,"padding")):null},d.fn["outer"+c]=function(a){return this[0]?parseFloat(d.css(this[0],e,a?"margin":"border")):null},d.fn[e]=function(a){var f=this[0];if(!f)return a==null?null:this;if(d.isFunction(a))return this.each(function(b){var c=d(this);c[e](a.call(this,b,c[e]()))});if(d.isWindow(f)){var g=f.document.documentElement["client"+c];return f.document.compatMode==="CSS1Compat"&&g||f.document.body["client"+c]||g}if(f.nodeType===9)return Math.max(f.documentElement["client"+c],f.body["scroll"+c],f.documentElement["scroll"+c],f.body["offset"+c],f.documentElement["offset"+c]);if(a===b){var h=d.css(f,e),i=parseFloat(h);return d.isNaN(i)?h:i}return this.css(e,typeof a==="string"?a:a+"px")}}),a.jQuery=a.$=d})(window)
a.elem.style&&a.elem.style[a.prop]=null?a.elem.style[a.prop]=(a.prop==“width”| | a.prop==“height”?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now})、d.expr&&d.expr.filters&(d.expr.filters.animated=函数(a){返回d.grep(d.timers,函数(b){返回a==b.elem}).length});var ce=/^t(?:able | d | h)$/i,cf=/^(?:body | html)$/i;c.documentElement中的“getBoundingClientRect”?d.fn.offset=函数(a){var b=this[0],c;如果(a)返回此值。每个函数(b){d.offset.setOffset(this,a,b)};如果(!b | |!b.ownerDocument)返回null;如果(b==b.ownerDocument.body)返回d.offset.bodyOffset(b);尝试{c=b.getBoundingClientRect()}捕捉(e){var f=b.ownerDocument,g;如果(!c)包含)返回c:{top:c.top:c.top,左:c.c.top,左:c.左:}:{top:0,左:0 0,左:0};var h=f.bo体,i=cg(f),j=g.clientTop:c.top:c.top:c.top:c.top:c.top:c.top:c.top:c.top:c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.top,c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.left+m-k;返回{top:n,left:o}}:d.fn.offset=function(a){varb=this[0];if(a)返回this.each(函数(b){d.offset.setOffset(this,a,b)});if(!b | | |!b.ownerDocument)返回null;if(b==b.ownerDocument.body)返回d.offset.bodyOffset(b);d.offset.initialize();var c,e=b.offsetParent,f=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,l=b.OffsetTM;而offsetTM((b=b.parentNode)和&b!==i和&b!==h{if(d.offset.supportsFixedPosition和&k.position==“fixed”)中断;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b==e和(l+=b.offsetTop,m+=b.offset.doesNotAddBorder和(!d.offset.DoedBorderforTableandCells)&&Cells |测试(EnamBorderTop)&=b.Float+=c)(浮动宽度)||0,m+=parseFloat(c.borderLeftWidth)| | 0,f=e,e=b.offsetParent),d.offset.SubtractsOrderforOverflowNotVisible和c.overflow!=“visible”&(l+=parseFloat(c.borderTopWidth)| | | 0,m+=parseFloat(c.borderLeftWidth)| | | | 0),k=c}如果(k.position==“relative”| | | k.position==“静态”)l+=Supporti.OffsetWidth,m+=i.OffsetLeftWidth;=“固定位置”&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));返回{top:l,left:m},d.offset={initialize:function(){var a=c.body,b=c.createElement(“div”),e,f,g,h,i=parseFloat(d.css(d.css(a,“marginTop”))| 0,j=“”;d.extend(b.style,{position:{position:“绝对”,top:0,left:0,margin:0,border:0,width:“1px”,可见性:“隐藏高度”),b.innerHTML=j,a.insertBefore(b,a.firstChild),e=b.firstChild,f=e.firstChild,h=e.nextSibling.firstChild.firstChild,this.doesNotAddBorder=f.offsetTop!==5,this.doesaddborderfortable和cells=h.offsetTop==5,f.style.position=“固定”,f.style.top=“20px”,this.supportsffixedposition=f.offsetposition=f.offsetop==f.style.top==20,e.style.overflow=“hidden”,e.style.position=“relative”,this.subtractsBorderForOverflowNotVisible=f.offsetTop==-5,this.doesnotincludemarginbodyoffset=a.offsetTop!==i,a.removeChild(b),a=b=e=g=h=null,d.offset.initialize=d.noop},bodyOffset:function(a){变量b=a.offsetLeft,c=a.offsetLeft;d.offset.initialize()第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分,第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分,第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第二部分是第k={{},l{{{},l},l},l},m,n,m,n,n,m,n,m,n,m,n,m,m,m,m,m,m,m,n,m,n,n,m,n,n,n,n,n,n,n,m,m,m,m,m,m,m,m,m,m,m,m,j,l,m,0,0,0,0,n,n,n,n,n,n,n,n,n,n,n,n,n,n,l,l,l,l,l,l。左:左:l,l,l,l,l,l,l,l,l,l。左:P,l,l。左:P,l。左:P。左:P:P,P:P,P,P,P,P,P,P,P:P,P,P,P,P,l。左:P,P:null;var a=this[0],b=this.offsetParent(),c=this.offset()测试(b[0]0.nodeename)以下:{top:0,左:0)0,左:0}:b.off::;c.top-=par浮(d.css(a.css(a[0 0[0 0 0[0 0]左)c.c.左-=c.c.c.左-=c.c.c.测试(c.测试(c.测试)c.c.测试(c.测试(0)c.测试(c.c.左-))))))))));0,c.c.左-=测试(c.测试(0,c.左-=测试(0,c.c.左-=测试(c.左-=测试(c.左-);测试(c.左-=测试(c.左-));测试(c.c.左-=测试(c.左-=测试(c.左-=测试(c.左)测试(c.左-))));函数()(a)虽然(a)和(a&(!cf.测试(a.nodeName)以及d.css(a,“位置“===“静态”)a=a.a.a=a.a.a.var a=本。var a=本次。Off a=a=本次。OffsetPara=本次。OffsetPara=本次。OffsetPara.a=本次。Offset家长(a.a=a.a=本次。Offseta.a.a.a.a.a.Offseta=本次。返回本次。Offset家长;返回a.返回一个(返回一个(返回a}}}}}},返回一个(返回一个}}}}}}}}}),d),d.a),d.a,d.a,d.a.a.a.a.a.a.a.a。各(返回一(一个(一个),d.a.a.a.a.a.a.a.=c});g=cg(f);返回g?g[a?”pageYOffset中的“pageXOffset”:“pageXOffset”]:d.support.boxModel和&g.document.documentElement[e]| g.document.body[e]:f[e]})、d.each([“高度”、“宽度”]、函数(a,c){var e=c.toLowerCase();d.fn[“内部”+c]=function(){返回此[0]?解析的浮点(d.css(此[0],e],“填充”):null}、d.fn=外部(此函数){parseFloat(d.css(this[0],e,a?“margin”:“border”):null},d.fn[e]=函数(a){var f=this[0];if(!f)return a==null?null:this;if(d.isFunction(a))返回这个。每个(函数(b){var c=d(this);c[e](a.call(this,b,c[e])));if(d.isWindow if(f)){var g=f.document f.document element[“client”+c];return f.document compatMode==“cs124g&compating.document[“客户端”=”文档体+c] | | g}if(f.nodeType==9)返回Math.max(f.documentElement[“client”+c],f.body[“scroll”+c],f.documentElement[“scroll”+c],f.body[“offset”+c],f.documentElement[“offset”+c]);if(a==b{var h=d.css(f,e),i=parseFloat(h);返回d.isNaN(i)?h:i}返回此值。css(e,typeofa==“string”?“string”?:a:a:a+a+“offset”=“offset”},px=a)查询窗口(jd})

我的代码没有错误…

我建议您调试代码,因为jquery的min版本工作正常。您的代码有问题,这会间接导致internet explorer中出现错误,您必须进行相应的解决

我最喜欢的事情(以及我刚刚解决的类似问题)是

  • 删除所有javascript并运行它 style: { name: 'dark', background: $('.ui-widget-header:first').css('background-color') <?php //internet explorer is retarded if(!preg_match('/MSIE/i',$_SERVER["HTTP_USER_AGENT"])) { echo ", tip: true"; } ?> }, position: { target: 'mouse', corner: { target: 'topLeft', tooltip: 'bottomLeft' } } });
    a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now||0):a.now)+a.unit;
    
    _default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}})
    
    if(isNaN(a.now)){return;}
    
    _default:function(a){if(isNaN(a.now)){return;}a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}})