js实现兼容IE6与IE7的DIV高度

时间:2010-05-13    点击:91   
复制代码 代码如下:

<body onload="setHeight()">
<script type="text/javascript">
function setHeight() {
var PageHeight=$("oPage").scrollHeight
var MaxHeight=507

if(PageHeight>MaxHeight)
{
$("oPageMain").style.height=$("oPage").scrollHeight + 40 +"px"
$("oRight").style.height=$("oPage").scrollHeight + 120 +"px"
$("oMain").style.height=$("oPage").scrollHeight + 211 +"px"
}
}
</script>


利用location.hash实现跨域iframe自适应
Array.prototype 的泛型应用分析
js href的用法
解决IE下select标签innerHTML插入option的BUG(兼容IE,FF,Opera,Chrome,Safari)
Js 随机数产生6位数字
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved