FF: setAttribute("class","xx"); IE: setAttribute("className", "xx"); 转载于:https://www.cnblogs.com/bluewolfox/archive/2010/04/21/1716730.html