关于 chrome 中动态style什读取
之前用 element.style.height 来读,返回空,但在开发工具可以看到,chrome的标题是 "Computed Style",于是用这个关键字搜索,果然有,这么计算:window.getComputedStyle(document.getElementById("frameId"),null).getPropertyValue("height")
详细见: http://stackoverflow.com/questions/5910004/how-do-i-get-a-computed-style
浙公网安备 33010602011771号