1
我想实现这个代码的第二个iframe的自动调整大小,2 iframe的一个页面,第二个iframe来自动高度
任何帮助,将不胜感激。
CSS
* {
margin: 0;
padding: 0
}
html, body {
height: 100%;
width: 100%;
overflow: hidden
}
table {
width: 100%;
table-layout: static;
border-collapse: collapse
}
iframe {
width: 100%
}
.header {
border-bottom: 1px solid #000
}
.content {
height: 100%
}
HTML
<table>
<tr>
<td class="header"><div><h1>Header</h1></div></td>
</tr>
<tr>
<td class="content"><iframe name="iFrame1" height="85" src="Materials AU Stocked Header.htm" scrolling="no" frameborder="1"></td>
</tr>
<tr>
<td class="content"><iframe name="iFrame2" height="100%" src="Materials AU Stocked.htm" scrolling="yes" frameborder="1"></td>
</tr>
</table>
如果可能,请不要使用框架! – rekire
你不应该使用表来做布局。 – 3dgoo
我不确定这是否可行,这两个文件是由Business Objects生成的,我需要将它们中的两个合并为一个页面。全部从文件本地打开,没有使用网络服务器。 – Shane