Analysis of Iframe usage
<iframe frameborder=0 width=170 height=100 marginheight=0 marginwidth=0 scrolling=no src=move-ad.htm></iframe>
<IFRAME> Floating frames or containers for text or graphics.
BORDER
<IFRAME BORDER=3></IFRAME>
Set the edge width around the frame
FRAMEBODER
<IFRAME FRAMEBODER=0></IFRAME>
Set the border to be 3-dimensional (0=No, 1=Yes)
HEIGHT,WIDTH
<IFRAME HEIGHT=31 WIDTH=88></IFRAME>
Set the width and height of the textured border
SCROLLING
<IFRAME SCROLLING=NO></IFRAME>
Is there a scroll bar (YES, NO, AUTO)
SRC
<IFRAME SRC=GIRL.GIF></IFRAME>
Specifies the file or image of the IFRAME call (HTM, HTM, GIF, JPEG, JPG, PNG, TXT, *.*)
Picture-in-Picture Effect--Talk about the Use of IFRAME Labels
Looking at the current websites, the Internet speed is a bit slow, but almost every page has a lot of similar things, such as banners, column pictures, copyrights, etc., of course, for the needs of unified website style and advertising effects, it is understandable, but after all, users' wallets are becoming increasingly stalemate for these embellished things. Is there a way to prevent these similar things from downloading them once, but only download those web page content with changes in content?
The answer is yes: apply Iframe tags!
1. Use of Iframe tags
When it comes to Iframe, you may have thrown it into a forgotten corner, but it is no stranger to talk about its brother Frame. Frame tags are frame tags. What we call a multi-frame structure is to display multiple HTML files in a browser window. Now, we encounter a very realistic situation: if there is a tutorial, one section at a time, and a link to the previous and next sections is made at the end of each page. Except for the different contents of each section, the contents of the other parts of the page are the same. If you make a stupid page on a page, it seems too annoying. At this time, you have a sudden idea. If there is a way to keep the other parts of the page unchanged, and only make the tutorial into a page-by-page content page without other content. When clicking the link to turn up and down, only change the content of the tutorial, and keep the others unchanged. In this way, one is to save time, and in the future, if there is a change in the tutorial, it is also very convenient, so that it will not affect the whole army; more importantly, download the advertising banner, column list, navigation and other things that are only downloaded once, and then no longer download it. Iframe tags, also known as floating frame tags, can be used to embed an HTML document in an HTML display. It is different from the biggest feature of the Frame tag, that is, the HTML file referenced by this tag is not displayed independently of another HTML file, but can be directly embedded in an HTML file, blended with the content of this HTML file to become a whole. In addition, the same content can be displayed on a page many times without having to repeat the content. A vivid metaphor is picture-in-picture TV.
Now let’s talk about the use of Iframe tags.
The usage format of Iframe tags is:
Copy the code