我有一个函数执行以下操作javascript:
javascript
appendChild
document.defaultView.getComputedStyle(divElement, null)[cssRule]
现在getComputedStyle返回默认值,如果我在调用之前使用Firebug 等待断点getComputedStyle,那么它将从注入的CSS返回CSS规则.
getComputedStyle
此致, 穆尼姆
javascript css
css ×1
javascript ×1