<IFRAME> is a form of framework, which is also commonly used.
Example 1:
<IFRAME width = 420 Height = 330 frameborder = 0 scrolling = auto src = URL> </iframe>
Needless to say.
Width: the width of the inserted page; Height: the height of the inserted page; scrolling: whether to display the page scroll bar (optional parameters: auto, yes, no. If this parameter is omitted, the default value is auto ); frameborder border size;
Note: absolute paths are recommended for URLs.
<IFRAME width = 0 Height = 0 frameborder = 0 scrolling = auto src = www.baid.com> </iframe>
Example 2:
If a page contains a frame .. Click the connection on the page and open it in <IFRAME>. Add name = ** to IFRAME (** set by yourself)
<IFRAME name = **> </iframe>
Then, modify the default open mode. Add <a href = URL target = **> or set the target frame of some connections to (**) in the header of the webpage (**)
Example 3:
Insert a page. Only the middle part is required. None of the above...
Code:
<IFRAME name = 123 align = middle marginwidth = 0 marginheight = 0 vspace =-170 hspace = 0 src = "http://www.baidu.com/" frameborder = No scrolling = no width = 776 Height = 2500> </iframe>
Controls the depth of the inserted page covered by the frame. marginwidth = 0 marginheight = 0; control framework overwrites the depth of the previous section. vspace =-170
Whether the scrolling scroll bar (Auto, yes, no) frameborder frame border size, width = 776 Height = 2500 the size of this frame.
I. Add IFRAME to the page
<IFRAME width = 420 Height = 330 frameborder = 0 scrolling = auto src = URL> </iframe>,
Scrolling indicates whether to display the page scroll bar. The optional parameters are auto, Yes, and no. If this parameter is omitted, the default value is auto.
2. the hyperlink points to the embedded webpage. You only need to name the IFRAME. The method is <IFRAME name = **>. For example, if I name it AA, write this HTML language <IFRAME width = 420 Height = 330 name = AA frameborder = 0 src = http://www.cctv.com> </iframe>, then the hyperlink Statement on the web page should be written: <a href = URL target = AA>
3. If you set frameborder to 1, the effect will be the same as the text box.
Transparent IFRAME usage
Must be ie5.5 or later.
In the <body> label of the transparentbody.htm file, I have already added style = "background-color = transparent". Using the following four IFRAME statements, I think you should have a clear understanding of the implementation of the IFRAME background transparency effect:
<IFRAME id = "frame1" src = "transparentbody.htm" allowtransparency = "true"> </iframe>
<IFRAME id = "frame2" src = "transparentbody.htm" allowtransparency = "true" style = "green"> </iframe>
<IFRAME id = "frame3" src = "transparentbody.htm"> </iframe>
<IFRAME id = "frame4" src = "transparentbody.htm" style = "green"> </iframe>
Introduction to <IFRAME>