var e=document.getElementById("controlId");
//返回级联样式表中设置的样式,为只读的,不能设置
//注意:CSS API中的getComputedSystle并非所有的浏览器都支持
var st=window.getComputedSystle(e,null);
//返回级联样式表中设置的样式,为只读的,不能设置
//注意:CSS API中的getComputedSystle并非所有的浏览器都支持
var st=window.getComputedSystle(e,null);
比如:css中background-colorjavascript: document.get**.style.backgroundcolor
currentstyle
在火狐中用window.getComputedSystle(e,null);
在IE中用currentStyle