DIV等高JS控制
时间:2010-11-29 来源:田方

{
var prodcut = document.getElementById("productDIV")getElementsByTagName("div");
var len = prodcut.length;
var h1;
var h2;
for(var i=0;i<len;i++)
{
var a=i;
var b=++i;
if(h1<h2)
{
product[a].style.height=h2+"px";
}
else
{
product[b].style.height=h1+"px";
}
}
}
HTML结构
<DIV id="product">
<div>faslkdjfkas
</div>
<div>124321342342</div>
</div>
写上怕忘记
相关阅读 更多 +
- 系统休眠文件删除后果 如何删除计算机的休眠文件 2025-04-22
- 站群服务器是什么意思 站群服务器的作用 站群服务器和普通服务器的区别 2025-04-22
- jQuery插件有何作用 jQuery插件的使用方法 2025-04-22
- jQuery插件有哪些种类 简单的jQuery插件实例 2025-04-22
-