"Painting" effect - talk about the use of IFRAME labels

xiaoxiao2021-03-06  85

Author: Qiu Source: NEW YORK page Taoba

Throughout the website, the speed is slow, but almost every page will put what Banner, column picture, copyright, etc., of course, for the unity of the website, the need for advertising effect, this is not thick, After all, let the user's wallet "embellished" thing "is increasingly rich", there is no way, let these mini things do not have to download after downloading, and only download the contents of the contents of the region. ?

The answer is very affirmation: apply iframe tag!

First, the use of iframe tag

Lift iframe, maybe you have already thrown it into "Forgotten corners", but, it is not strange to say that his brother Frame will not be strange. Frame tag is a frame mark, what we said is to display multiple HTML files in a browser window. Now, we encounter a very real situation: if there is a tutorial, it is a section of the section, and do a "last section", "the next section" link at the end of each page, except for each tutorial content In addition, the contents of the other parts of the page are the same. If a page is a stupid page, this seems to be too annoying. At this time, if there is a way to keep the page elsewhere, only the tutorial As a page of the content page, does not contain other content, when you click on the top and down link, only change the tutorial content part, others remain unchanged, so that one is saving, the other will be three long two shorts. It is also very convenient, not in the absence of the army; more importantly, it is no longer downloading those advertising banner, column list, navigation and other things. Iframe tag, a floating frame tag, you can use it to embed an HTML document in an HTML. It is different from the maximum feature of the Frame tag, that is, the HTML file referenced by this mark is not independently independent of the other HTML file, but can be embedded in an HTML file, integrated with this HTML file, and becomes a whole, You can also display the same content in a page multiple times without having to write content, and a metaphor of an image is "painting" TV.

Now let's talk about the use of iframe tags.

The usage format of the iframe tag is: