iframe 定义一个ID,DIV再给一个名,就可以直接指向IFRAME的DIV组件了

解决方案 »

  1.   

    楼上误会我的意思了,其他人有没有意见?前提是不可以改变两个div的层次
      

  2.   

    up,I think this problem for long time.
      

  3.   

    楼主你可以试试这个:
    a.htm:
    <body bgcolor=red>
    <div onmouseover="alert('div')" style="background-color: green; width: 50%">
    <iframe src=b.htm allowTransparency="true" width=100%></iframe>
    </div>b.htm:
    <BODY STYLE="background-color:transparent" onmouseover="alert('iframe')">
    这是 iframe 里的内容看看效果如何??