IE6与谷歌浏览器jquery中load()不兼容 !! 急!!急!!急!!急!!
IE8与火狐都能正常运行,可是用谷歌与IE6就没有效果了——————————————————————————代码如下:$.fn.desktop=function(url)...
IE8与火狐都能正常运行,可是用谷歌与IE6就没有效果了
——————————————————————————
代码如下:
$.fn.desktop=function(url){
if(url==null){alert("!");}else{
var sw = document.documentElement.scrollWidth;
var sh = document.documentElement.scrollHeight;
var desktopstr=new String;
desktopstr+="<div id='dianbuliao' style='width:"+sw+"px;height:"+sh+"px; left:0px;top:0px;position:absolute;overflow:hidden;background-color:black;filter:alpha(opacity=20); opacity:0.2;-moz-opacity:0.2;z-index:98'></div>"
$("#popbox").load(url,null,function(){}
});
——————————————————————————————
希望那位大侠解答,解决了加分!!
css
——————————————
.popbox{position:absolute;width:auto;top:150px;left:350px;z-index:99;height: auto;}
.popboxb{ position:absolute; width:600px;top:150px;left:250px; z-index:99;}
.popbox02{ position:absolute; width:100%;top:0px;left:0px; z-index:99;}
.poptitle{ background:url(../images/bg_pop.gif) repeat-x 0 -46px; height:33px;}
.poptitle .lyj{background:url(../images/bg_pop.gif) repeat-x;height:33px; width:9px; float:left;}
.poptitle h1{ float:left; padding:9px 0 0 5px; font-size:14px; color:#fff; font-weight:normal;}
.poptitle .ryj{background:url(../images/bg_pop.gif) repeat-x 0 -93px;height:33px; width:9px; float:right;}
.poptitle span{ display:block; float:right; padding:1px 0 0 0;}
.popconbox{ background:#fff url(../images/bg_popcon.gif) repeat-y left 0;zoom:1;}
.popconbg{ background:url(../images/bg_popconr.gif) repeat-y right 0; padding:0 15px; }
.poptabbox{ padding:10px 0 0 0;} 展开
——————————————————————————
代码如下:
$.fn.desktop=function(url){
if(url==null){alert("!");}else{
var sw = document.documentElement.scrollWidth;
var sh = document.documentElement.scrollHeight;
var desktopstr=new String;
desktopstr+="<div id='dianbuliao' style='width:"+sw+"px;height:"+sh+"px; left:0px;top:0px;position:absolute;overflow:hidden;background-color:black;filter:alpha(opacity=20); opacity:0.2;-moz-opacity:0.2;z-index:98'></div>"
$("#popbox").load(url,null,function(){}
});
——————————————————————————————
希望那位大侠解答,解决了加分!!
css
——————————————
.popbox{position:absolute;width:auto;top:150px;left:350px;z-index:99;height: auto;}
.popboxb{ position:absolute; width:600px;top:150px;left:250px; z-index:99;}
.popbox02{ position:absolute; width:100%;top:0px;left:0px; z-index:99;}
.poptitle{ background:url(../images/bg_pop.gif) repeat-x 0 -46px; height:33px;}
.poptitle .lyj{background:url(../images/bg_pop.gif) repeat-x;height:33px; width:9px; float:left;}
.poptitle h1{ float:left; padding:9px 0 0 5px; font-size:14px; color:#fff; font-weight:normal;}
.poptitle .ryj{background:url(../images/bg_pop.gif) repeat-x 0 -93px;height:33px; width:9px; float:right;}
.poptitle span{ display:block; float:right; padding:1px 0 0 0;}
.popconbox{ background:#fff url(../images/bg_popcon.gif) repeat-y left 0;zoom:1;}
.popconbg{ background:url(../images/bg_popconr.gif) repeat-y right 0; padding:0 15px; }
.poptabbox{ padding:10px 0 0 0;} 展开
展开全部
$.fn.desktop=function(url){
if(url==null){
alert("!");
}else{
var sw = document.documentElement.scrollWidth;
var sh = document.documentElement.scrollHeight;
var desktopstr=new String;
desktopstr+="<div id='dianbuliao' style='width:"+sw+"px;height:"+sh+"px; left:0px;top:0px;position:absolute;overflow:hidden;background-color:black;filter:alpha(opacity=20); opacity:0.2;-moz-opacity:0.2;z-index:98'></div>"
$("#popbox").load(url,null,function(){})
}
}
if(url==null){
alert("!");
}else{
var sw = document.documentElement.scrollWidth;
var sh = document.documentElement.scrollHeight;
var desktopstr=new String;
desktopstr+="<div id='dianbuliao' style='width:"+sw+"px;height:"+sh+"px; left:0px;top:0px;position:absolute;overflow:hidden;background-color:black;filter:alpha(opacity=20); opacity:0.2;-moz-opacity:0.2;z-index:98'></div>"
$("#popbox").load(url,null,function(){})
}
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询