日期:2014-05-17  浏览次数:20752 次

如何让iframe满框架显示
把iframe放在table中,iframe的body中只有一个div,div的width和height都是100%,但四周总是空出一块,应该怎样设置,代码如下:
<tr   width= "100% "   height= "100% ">
<td   width= "80% "   height= "100% ">
<iframe   id= "gps "   src   = "gps.html "   width= "100% "   height= "100% "   frameborder= "0 "   scrolling= "no "> </iframe>
</td>
<td   style= "width:20% "   height= "100% ">
<iframe   id= "ov "   src   = "ov.html "   width= "100% "   height= "100% "   frameborder= "0 "   scrolling= "no "> </iframe>
</td>
</tr>
</table>

分页面:
<body   onload= "load(); "   >
<div   id= "map "   style= "position:absolute;   left:0px;   right:0px;   width:100%;   height:100%; ">
</div>
</body>



------解决方案--------------------
iframe的那个页面的body设置样式{margin:0;}试试.