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
This article records the installation tutorial of...
This article introduces the method of using CSS3 ...
This article example shares the specific code of ...
I haven’t blogged for half a year, which I feel a ...
Table of contents Preface Bubble Sort Basic Algor...
Table of contents 1. Introduce cases 2. View the ...
1.docker search mysql查看mysql版本 2. docker pull mys...
Table of contents 1. What is componentization? 2....
HTML meta viewport attribute description What is ...
GTID-based replication Introduction GTID-based re...
MySQL allows you to create multiple indexes on th...
1. Pull the official 5.0.3 image [root@localhost ...
Real-time replication is the most important way t...
Table of contents 1. Background 2. Verification p...
Table of contents 1. How to update in batches Con...