码迷,mamicode.com
首页 > 其他好文 > 详细

使左右两个DIV高度相等的方法

时间:2015-06-16 10:35:02      阅读:113      评论:0      收藏:0      [点我收藏+]

标签:

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>

 

使左右两个DIV高度相等的方法

标签:

原文地址:http://www.cnblogs.com/-lijun/p/4579902.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!