HTML frame
By using the framework, you can display a browser window with more than one page.
iframe syntax:
<iframe src=" URL "></iframe>
The URL points to a different page.
Iframe - set the height and width
height and width attributes are used to define the height and width of the iframe tag.
The default attribute in pixels, but you can specify to scale (eg: "80%").
Examples
<iframe src="demo_iframe.htm" width="200" height="200"></iframe>
Iframe - Remove border
iframe frameborder attribute is used to define the display indicates whether the border.
Set the property value of "0" to remove iframe border:
Examples
<iframe src="demo_iframe.htm" frameborder="0"></iframe>
Use iframe to display the directory links page
iframe can display a link to the target page
Properties of the target link must use iframe attributes following examples:
Examples
<iframe src="demo_iframe.htm" name="iframe_a"></iframe>
<p><a href="http://www.w3write.com" target="iframe_a">w3write.com</a></p>
<p><a href="http://www.w3write.com" target="iframe_a">w3write.com</a></p>
HTML iframe tag
标签 | 说明 |
---|---|
<iframe> | 定义一个内联的iframe |