function SetCwinHeight(){ var bobo=document.getElementById("bobo"); //iframe id if (document.getElementById){ " />

Iframe自适应高度兼容ie,firefox多浏览器



<script type="text/javascript">
function SetCwinHeight(){
var bobo=document.getElementById("bobo"); //iframe id
if (document.getElementById){
if (bobo && !window.opera){
if (bobo.contentDocument && bobo.contentDocument.body.offsetHeight){
bobo.height = bobo.contentDocument.body.offsetHeight;
}else if(bobo.Document && bobo.Document.body.scrollHeight){
bobo.height = bobo.Document.body.scrollHeight;
}
}
}
}
</script>
<iframe width="100%" id="bobo" onload="Javascript:SetCwinHeight()" height="1" frameborder="0" src="/default.asp?cateID=1"></iframe>



[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]

IE之死__原来与CSS有关
我这里有两个例子,如果你的浏览器是IE的,你可以测试一下!1、先看这几行代码!bodydivid="main"/divscriptlanguage="javascript"vara=('divclass="listInfo"pp/pspanspanspan

CSS规则层叠的应用 css必须要注意的几点
理论基础是必要的,实践是提升和理解理论的方法,两者同样重要,任何设计和开发人员离开这两者的平衡,不论偏向哪一方,都会范或左或右的错误

用div实现像table一样的布局方法
许多网页设计师都喜欢,将两个或者多个容器等高的并排放置,并在里面展示每个容器的内容,就象经典表格布局中的单元格控制几个栏目的位置,也