Use IFRAME to implement web page embedded and preload

xiaoxiao2021-03-06  78

Use IFRAME to implement web page embedded and preload

-------------------------------------------------- ------------------------------ http://www.sina.com.cn 2001/09/04 14:37 China Is the computer education report Liu Mingfeng in the HTM (HTML) file to embed other files like PHP, ASP files? The following writers describe how to implement by iframe.

The function of the iframe element is in a document, creating a floating frame. Some of the properties are as follows:

Name: Inline Frame Name

Width: Inclusion Frame Width (available pixel value or percentage)

HEIGHT: Intriped frame height (available pixel value or percentage)

Frameborder: Inline frame border

MarginWidth: The left and right pages of intra text

Marginheight: The upper and lower page margins of intra text

Scrolling: Does the scroll bar appear ("auto" is automatic, "Yes" is displayed, "no" is not displayed)

SRC: The address of the in-file file

Style: The style of embedded documents (such as setting up document background, etc.)

ALLOWTRANSPARENCY: Whether it is allowed to be transparent

After understanding the above properties, we can implement the following code, displaying the contents of the SAMPER.htm file in main.htm in a height of 80, a width of 100%, and automatically displays the bound frame: