var style=window.getComputedStyle(element[,pseudoElt]);
var style=window.getComputedStyle(element).property(属性);只读属性,不可修改(包括内联样式,以及以外的样式都可获取)IE9一下不支持
获取对象的属性值。
elm.currentStyle则支持所有的IE。兼容:
function getConputedStyle(elm){
if(windows.getComputedStyle)
return windows.getComputedStyle(elm);
return elm.currentStyle;}

浙公网安备 33010602011771号