http://www.quirksmode.org/dom/w3c_css.html
很不错的文章,列表 currentStyle getComputedStyle cssRules rules 等等关于 CSS 的 DOM 方法兼容性。
BTW:funny code
HTMLElement.prototype.__defineGetter__(”runtimeStyle”, function() {
return document.defaultView.getComputedStyle(this, null);
});
Leave a reply