日期:2014-05-16  浏览次数:20365 次

用js控制两个div的高度一致,div1.style.height=div2.offsetHeight怎么没用呢?
IE有效的,,非IE系列全部失效,但是用console.log(div2.offsetHeight) 有数据的

------解决方案--------------------
http://www.itdos.com/javascript/86.html