两个iframeleftiframe rightiframe 
点击leftiframe 中的onclick 怎么改变rightiframe中的样式?

解决方案 »

  1.   

    如果name="rightiframe"
    parent.document.frames['rightiframe'].document.xxx.style.xxx = "xxxx";如果id="rightiframe"
    parent.document.getElementById('rightiframe').contentWindow.document.xxx.style.xxx = "xxxx";
      

  2.   


    高手,如果rightframe是包含在另一个框架里呢?那该如何写?
      

  3.   


    parent.document.getElementById('另一个框架的id').contentWindow.document.getElementById('rightiframe').contentWindow.document.xxx.style.xxx = "xxxx";