经过js来获取元素的css样式 css
function getCssEffect(domObj) { if (domObj.currentStyle) { return domObj.currentStyle; } else if (window.getComputedStyle) { return document.defaultView.getComputedStyle( domObj ); } else { return null } }