HTML frame
HTML Frames
By using frames, you can display more than one page in the same browser window.
Frame tagiframe
##iframe syntax :
#This URL points to a different web page. You can also point to a specific HTML file
Iframe - Set height and width
height and width attributes are used to define the height and width of the iframe tag.
The property is in pixels by default, but you can specify that it is displayed proportionally (e.g.: "80%").
Example
php中文网(php.cn) 一些旧的浏览器不支持 iframe。
如果浏览器不支持 iframes 则不会显示。
##Iframe - Remove bordersThe frameborder attribute is used to define whether the iframe indicates whether to display the border.
Run this Section program to see what is different from the above programphp中文网(php.cn)
##
Use iframe to display directory link page
iframe can display a target link page
The attributes of the target link must use the attributes of iframe, as shown in the following example:
php中文网(php.cn)
Run the program and click to see
HTML iframe tag
Tag | Description |
Define an inline iframe |
##