Can't set DIV equal to another DIV HTML/Javascript
问题 for some reason, my wrapper div won't equal the same height as my maincontent div. I'll post the code and I would love if someone could help me understand why. Also, I can use jquery if need be Javascript: var wrap=document.getElementById('wrapper'); var left=document.getElementById('maincontent').style.height; wrap.style.height=left; HTML: <div id="wrapper"> <!-- TemplateBeginEditable name="Main Content" --> <div id="maincontent"> </div> <!-- TemplateEndEditable --><!-- TemplateBeginEditable