用js的话方便美工人员传递参数现在就是如何把iframe里边的内容通过js显示出来,
stat_str ="<iframe src='test.htm' marginheight=0 marginwidth=0 frameborder=0 width=100% height=100% scrolling=NO> 
      </iframe> "  这样不行呀

解决方案 »

  1.   

    document.write或者用DIV容器+innerHTML
      

  2.   

    也可以用require('./test.php');呀。
      

  3.   

    document.write("<iframe src='test.htm' marginheight=0 marginwidth=0 frameborder=0 width=100% height=100% scrolling=NO> 
          </iframe>");
    这样不行呀
      

  4.   

    document.writeln('......需要嵌入显示HTML代码......');
    写成一个如test.js文件
    再在需要嵌入的地方<script src="存放目录/test.js"></script>即可
      

  5.   

    晕!我的意思是把'test.htm' 里面的代码写在document.writeln('......');
    里面