心愿
使用innerHtml
改以下几个地方:
divemp.onmouseover=MouseOver;
divemp.onmouseout=MouseOut;
function MouseOver(){
event.srcElement.style.display = "";
}
divemp.onmouseover="MouseOver("+divdetail.id+")";
改成
divemp.setAttribute("onmouseover", "MouseOver("+divdetail.id+")");
setAttribute我不知道这个方法我有没有拼错