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>
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>
转载于:https://www.cnblogs.com/-lijun/p/4579902.html