兼容的一些问题 1.ie中setAttribute不支持设置style等属性 解决方法: //atom.setAttribute("style","z-index:999;cursor:pointer"); atom.style.cssText="z-index:999;cursor:pointer";