给你看个代码吧
var toLi=event.toElement;
if(toLi==obj) return false;
if(toLi.tagName=="A" || toLi.tagName=="UL") toLi=toLi.parentElement;
if(toLi.children[1])
{
toLi.children[1].style.display="block";
//加上这句可以遮盖其它对象,如select:toLi.insertAdjacentHTML("beforeEnd","<iframe class='backgroundIframe'></iframe>");
toLi.insertAdjacentHTML("beforeEnd","<iframe class='backgroundIframe'></iframe>");
var toLi=event.toElement;
if(toLi==obj) return false;
if(toLi.tagName=="A" || toLi.tagName=="UL") toLi=toLi.parentElement;
if(toLi.children[1])
{
toLi.children[1].style.display="block";
//加上这句可以遮盖其它对象,如select:toLi.insertAdjacentHTML("beforeEnd","<iframe class='backgroundIframe'></iframe>");
toLi.insertAdjacentHTML("beforeEnd","<iframe class='backgroundIframe'></iframe>");
? 给div的innerHTML里加一个iframe
====================================
以前遇到同样的问题时,就是按这个方法解决的。