87,907
社区成员
发帖
与我相关
我的任务
分享
document.write("<iframe id='floatDiv' style='width:112px;padding-left:0px;' src='http://localhost:4905/Web/index.aspx?kfID="+kfID+"&style="+style+"&keyword="+keyword+"'"+" frameBorder='0' width='100%' height='229px' scrolling='no' ></iframe>");
function resizeIFrameHeight(){
if(top.location != self.location){
var frames = window.parent.document.getElementsByTagName('iframe');
for (var i=0;i<frames.length;i++){
if (frames[i].name == self.name){
frames[i].height = document.body.scrollHeight;
frames[i].width = document.body.scrollWidth;
if(frames[i].name == "content"){
if(frames[i].height<300)frames[i].height=300;
}
break;
}
}
}
}
resizeIFrameHeight();