怎么在div里嵌入另外一个网页?

解决方案 »

  1.   

    有struts2的话<s:include value=""></s:include>
      

  2.   

    include 或者iframe。。 看你使用场景
      

  3.   

    function calogin()
      {
      var uid="<%=user.getCODE()%>";
      var password="<%=user.getPASSWORD()%>";
    var location = ' http://www.yyy.com/default_1.aspx'; //首页
      var auth = new ActiveXObject('msxml2.xmlhttp');   
      auth.open('post',location, false,uid,password);
      auth.send();
      switch (auth.status) {
      case 200:   
      document.getElementById("tt").innerHTML='<center height="1000"><object type="text/x-scriptlet" width="1000" height="2180" data=" http://www.yyy.com/default_1.aspx'"></object></center>';  
      break;   
      }
      }
    我想把object换成iframe,怎么做???????????
      

  4.   

    用 <iframe src=""></iframe>
      

  5.   

    用<iframe src=""></iframe>后,它怎么不在我想要的div里显示?
      

  6.   

    <jsp:include page=""/>或者<%@include file=""%>
      

  7.   

    用<iframe>吧,这样可以不用考虑太多
      

  8.   

    我一般都用一个DIV里放一个iframe才嵌套页面的 
      

  9.   

    有很多种写法,看你用哪种,我这里介绍几个给你,
    <s:include value=""></s:include>
    <jsp:include page=""/>
    <%@include file=""%>
    <iframe src=""></iframe>
    希望对你有帮助