摘要:
1.document.defaultView.getComputedStyle 这是w3c标准方法,取得元素的样式信息,因为有些样式是在外部css文件定义的,所以用element.style是取不到的 如果是IE,可以用 element.currentStyle["name"] 。下面是一个兼容浏览器的方法: function GetCurrentStyle (obj, prop) { if (obj.currentStyle) //IE { return obj.currentStyle[prop]; } else if (window.getComputedStyle) 阅读全文
posted @ 2013-05-09 21:52
Joy Ho
阅读(277)
评论(0)
推荐(0)

浙公网安备 33010602011771号