代码
<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> 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-17
  • 2021-07-29
  • 2022-12-23
  • 2022-12-23
  • 2021-09-16
  • 2021-10-17
  • 2021-06-04
相关资源
相似解决方案