日期:2014-05-16  浏览次数:20378 次

帮助我弄一个值
var a = document.getElementById("abc");

我想知道 abc的”backgroundColor“的值;

------解决方案--------------------
document.defaultView.getComputedStyle(a).backgroundColor  //w3c
a.currentStyle.backgroundColor//ie
这样试试