1 <script type="text/javascript"> 2 function height(){ 3 document.getElementById("aLeft").style.height = document.getElementById("aRight").offsetHeight + "px"; 4 } 5 window.onload = function(){ 6 height(); 7 } 8 </script>
时间: 2024-10-12 22:35:38
1 <script type="text/javascript"> 2 function height(){ 3 document.getElementById("aLeft").style.height = document.getElementById("aRight").offsetHeight + "px"; 4 } 5 window.onload = function(){ 6 height(); 7 } 8 </script>