Introduction 1.<iframe> tag: iframe is an inline frame that generates an internal frame in the page. 2. <frameset> tag: frameset defines a frame set, which contains multiple sub-frames, each of which has an independent document. <iframe> Tag Iframe is an inline frame, which generates an internal frame in the page. <iframe></iframe> property frameborder{int}: whether to display the frame border; src{URL}: specifies the URI of a resource (such as a web page or image); scrolling{boolean}: whether to display the scroll bar of the frame; width{int}: defines the width of the iframe; height{int}: defines the height of the iframe; Example <body> <h3>HTML Tag Demonstration</h3> <iframe src=1.1-ShowHtml.htm ></iframe> </body> Precautions When adding content in "<iframe>I am content</iframe>", the added content will not be displayed on the display page. So let's use the src attribute to specify a page. Application Scenario 1) On the version upgrade page, if there are too many version logs, the upgrade information can be placed in an iframe. 2) Rich text editing box, such as the [New Essay] area in Blog Garden. <frameset> Tag Frameset defines a frame set, which contains multiple frames, each of which has an independent document. Format <frameset> <frame src=a.htm /> <frame src=b.htm /> <noframes></noframes> </frameset> Sub-item Description <framesrc=a.htm />: Subframe<noframes></noframes>: Content displayed when the browser does not support this frame. property frameset attributes: rows: indicates that the subframe is laid out in rows ( frame attribute: src: URI pointing to a resource (such as a page, picture, etc.); name: Specifies the name of the frame to facilitate operations between frames. Example <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>frameset demo</title> </head> <frameset rows="30%,*" noresize="noresize"> <frame src=DateGrid.htm name="frm1" /> <frame src=Dialog.htm name="frm2"/> <noframes></noframes> </frameset> </html> Precautions When using the frameset tag, be sure to remove the outer <body></body> tags. Operations between subframes Referring to the sample code, frm1 changes the page pointed to by the subset of frm2: Application Scenario 1) Management of the background page, the menu is displayed on the left, and the detailed page is displayed in the right frame. 2) Function menu page, such as bbs.csdn.net Quick Facts When browsing the frames in a page, right-click inside the frame page to display additional frame information. Take Chrome as an example: |
<<: Solve the problem of not being able to enter breakpoints when using GDB in Docker
>>: MySQL Flush-List and dirty page flushing mechanism
Occasionally you'll see characters such as ...
MySQL official website download address: https://...
1. Paradigm The English name of the paradigm is N...
Here we only introduce the relatively simple inst...
Table of contents Debounce Throttle Summarize Deb...
Demand scenario: The existing PXC environment has...
For sorting, order by is a keyword we use very fr...
This article example shares the specific code of ...
Implemented according to the online tutorial. zab...
Table of contents Preface 1. Why do cross-domain ...
Overview I have been using Docker for more than a...
1. DNS server concept Communication on the Intern...
MySQL 5.7 and above versions provide direct query...
If we want to perform batch operations on a type ...
April 23, 2020, Today, Ubuntu 20.04 on Windows al...