这篇文章真是比w3C msdn还犀利,收藏,如果你也一样遇到js获取css样式问题,虽然用currentStyle和getComputedStyle两个方法就差不多了,多了解只会有好处。
张鑫旭的获取元素CSS值之getComputedStyle方法熟悉
http://www.zhangxinxu.com/wordpress/2012/05/getcomputedstyle-js-getpropertyvalue-currentstyle/
http://www.zhangxinxu.com/wordpress/2012/05/getcomputedstyle-js-getpropertyvalue-currentstyle/