obj.style.setAttribute(); 在google,firefox下不支持style.setAttribute();请问有什么好的解决方法吗?
代码:
function setCellStyle(name,value,isStyleAttribute){
try{
if (isStyleAttribute){
o._currentCell.style.setAttribute(name,value,0);
//cssText
var o_span = getSpan(o._currentCell);
if(o_span){
o_span.style.setAttribute(name,value,0);
}else{
//todo
}
}
}catch{
alert(e.message);
}
}