![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
<script language="javascript" type="text/javascript">
<!--
window.onload=window.onresize=function()
{
if(document.getElementById('RDiv').clientHeight<document.getElementById('LDiv').clientHeight)
{
document.getElementById('RDiv').style.height=document.getElementById('LDiv').offsetHeight+"px";
}
else
{
document.getElementById('LDiv').style.height=document.getElementById('RDiv').offsetHeight+"px";
}
}
-->
</script>
<div id="LDiv" style=" float:left; width:150px; background-color: #E6E6E6;">
</div>
<div id="RDiv" style=" float:left; background-color: #E9F4FF;">
</div>
<!--
window.onload=window.onresize=function()
{
if(document.getElementById('RDiv').clientHeight<document.getElementById('LDiv').clientHeight)
{
document.getElementById('RDiv').style.height=document.getElementById('LDiv').offsetHeight+"px";
}
else
{
document.getElementById('LDiv').style.height=document.getElementById('RDiv').offsetHeight+"px";
}
}
-->
</script>
<div id="LDiv" style=" float:left; width:150px; background-color: #E6E6E6;">
</div>
<div id="RDiv" style=" float:left; background-color: #E9F4FF;">
</div>