var a=document.getElementById("ileft")
var b=document.getElementById("iright")
if (a.scrollHeight<b.scrollHeight)     //很多网友在这里写成了a.style.height，经测试不行。
{
a.style.height=b.scrollHeight+"px"; //我在实际操作中因为左边有最小高度，所以此处设定成了固定值。
}
else
{
b.style.height=a.scrollHeight+"px"; }