解决办法。将class 换成 className ,同理。ff不能识别className,将其换成class
element.setAttribute("class","active");//dd element.setAttribute("className","active");//ie
解决办法。将class 换成 className ,同理。ff不能识别className,将其换成class
element.setAttribute("class","active");//dd element.setAttribute("className","active");//ie