方法:removeAttribute(被删除属性) 如:document.getElementsByTagName("H1")[0].removeAttribute("style"); 详见:HTML DOM removeAttribute() 方法 | 菜鸟教程