The method is as follows:
Save as prompted.
Save as mainframe.htm
Copy codeThe Code is as follows:
<Html>
<Body>
<Div>
<Iframe marginwidth = "0" marginheight = "0" hspace = "0" vspace = "0" frameborder = "0"
Id = "frametb" scrolling = "no" src = "frame.htm"
Onload = "style.width?this.content=doc ument. all. formfra. offsetWidth ;"
+ "Style.height?this.content=doc ument. all. formfra. offsetHeight"> </iframe>
</Div>
</Body>
</Html>
Save as frame.htm
Copy codeThe Code is as follows:
<Html>
<Body leftmargin = "0" topmargin = "0">
<Table id = formfra width = 200 border = 0 bgcolor = green>
<Tr> <td>
Hu Dongping online space
<P/>
Sfsfere
</Td> </tr>
</Table>
</Body>
</Html>
Execute mainframe.htm to see the effect.
When modifying a set, define the table ID in mainframe.htmand frame.htm, and remember to modify the corresponding
Call the file name and path, and pay attention to the following sentence:
Copy codeThe Code is as follows:
Onload = "style.width?this.content=doc ument. all. formfra. offsetWidth ;"
+ "Style.height?this.content=doc ument. all. formfra. offsetHeight"
Modify
Copy codeThe Code is as follows:
This.contentdomaindoc ument. all. Call the page table ID. offsetWidth
This.contentdomaindoc ument. all. Call the page table ID. offsetHeight
Remember, you must define the table ID.