function getHeight(element) { var offsetHeight = document.getElementsByClassName(element).offsetHeight;}虽然它正确地使用document.getElementsByClassName(element)将元素打印到控制台,但我无法访问offsetH
我有以下HTML: <div id="a" class="grid_6" style="background-color: #ff00ff"> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standa