Home > Article > Web Front-end > Use of HTML frames
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
[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 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:
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 everyoneThe above is the detailed content of Use of HTML frames. For more information, please follow other related articles on the PHP Chinese website!