Home >Web Front-end >HTML Tutorial >Use of HTML frames

Use of HTML frames

清浅
清浅Original
2019-04-10 10:35:207704browse

HTML frame: HTML frame can display multiple pages in the same browser window. The 04a0d55efbbfd646a993fbc01f262c57 tag can build a frame page to split the browser window, and the d5ba1642137c3f32f4f4493ae923989c tag is used for intra-page frames

Using frames in a page can display multiple pages in the same browser window. Each page can be regarded as a frame, and the frame is independent of other frames. Next, in the article, I will introduce you to how to use the framework in detail, which has a certain reference effect. I hope it will be helpful to you

Use of HTML frames

[Recommended courses: HTMLTutorial

Building a frame page

The frame can be represented by the 04a0d55efbbfd646a993fbc01f262c57c025ed69e2a0a7ecd1b424ce71353652 tag

It should be noted that the tag f900b4fc197b16ab214eecf015bb6bd2 can be nested. It has cols and rows attributes, where cols is used to set the height of the divided left and right windows, and rows is used to set the height of the divided upper and lower windows.

Example:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<frameset rows="48,*" cols="*" frameborder="no" border="0" framespacing="0">
<frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame"/>
<frameset cols="150,*" frameborder="no" border="0" framespacing="0">
<frame src="left.html" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame"/>
<frame src="main.html" name="mainFrame" id="mainFrame"/>
</html>

Rendering:

Use of HTML frames

##Note: Use f900b4fc197b16ab214eecf015bb6bd2 You need to delete the 6c04bd5ca3fcae76e30b72ad730ca86d tag when framing, because it is a special HTML file. If it is not deleted, the browser will have no effect.

Use of in-page frames

The difference between an in-page frame and a page frame is that an in-page frame is a special area in an ordinary page, that is, an ordinary page contains multiple frames, usually cells of a table, while the page

frame is The entire page is a frame. In-page frames can use the d5ba1642137c3f32f4f4493ae923989c tag

Example:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<iframe src="https://www.baidu.com/"></iframe>
</html>

Rendering:

Use of HTML frames

where src represents the content of the specified preload page

Reference for this article: https://www.html.cn/doc/html/iframe/

Summary: The above is the entire content of this article Okay, hope it helps everyone

The above is the detailed content of Use of HTML frames. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn