如何将框架集转换为iframe

时间:2019-01-09 09:13:05

标签: html jsp

我的代码被构造为框架集。

我想将其更改为iframe格式。

<frameset rows="49px, *, 22%, 0" border="0" frameborder="0" framespacing="0"> 
<frame src="/vew/DS_Top.jsp" name="DS_Top" scrolling="no" frameborder="0" border="0" noresize>
<frameset cols= "550, *" border="0" frameborder="0" framespacing="0">
<frame src="/vew/DS_Main.jsp" name="DS_Main" border="0" frameborder="0">
<frame src="/vew/DS_Left.jsp" name="DS_Left"  border="0" frameborder="0"> 

              

--------------------------------------------------------
                  DS_Top
--------------------------------------------------------
                 |
                 |
                 |
    DS_Main      |             DS_Left
                 |
                 |
                 |
               DS_Sub
-------------------------------------------------------
 height=0 : DS_White

我尝试过,但是没有用

.DSmain {
  width: 550px;
  height: calc(100% - 22% - 49px);
  position: absolute;
}

.DSleft {
  height: calc(100% - 22% - 49px);
  width: calc(100% - 566px);
  margin-left: 550px;
  position: absolute;
}

.DSsub {
  width: 100%;
  height: 22%;
  margin-top: calc(100%-22%-49px);
  position: absolute;
}
Using ajavascript:'string' to show which file goes where
<hr/>

<iframe src="javascript:'/vew/DS_Top.jsp'" width="100%" height="49px;" frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe>
<iframe src="javascript:'/vew/DS_Main.jsp'" class="DSmain" frameborder=0 framespacing=0 marginheight=0 marginwidth=0></iframe>
<iframe src="javascript:'/vew/DS_Left.jsp'" class="DSleft" frameborder=0 framespacing=0 marginheight=0 marginwidth=0></iframe>
<iframe src="javascript:'/vew/DS_Sub.jsp'" class="DSsub" frameborder=0 framespacing=0 scrolling=no marginheight=0 marginwidth=0></iframe>
<iframe src="javascript:'/vew/DS_White.jsp'" width="100%" height="0px;" frameborder=0 framespacing=0 marginheight=0 marginwidth=0 scrolling=no></iframe>

0 个答案:

没有答案