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

