In IE, I can directly use alert(parent.document.getElementById('aa').style.height) to display its height, but it cannot be displayed in a browser using webkit kernel. How does webkit express the above? What about the content? So how does chrome represent it? Thank you!
var value = element.style[style]; if (!value || value === 'auto') { var css = document.defaultView.getComputedStyle(element, null); value = css ? css[style] : null; }
var value = element.style[style]; if (!value || value === 'auto') { var css = document.defaultView.getComputedStyle(element, null); value = css ? css[style] : null; }