Home  >  Article  >  Web Front-end  >  What does iframe mean? Detailed explanation of floating frame iframe

What does iframe mean? Detailed explanation of floating frame iframe

云罗郡主
云罗郡主Original
2018-11-07 14:35:1118173browse

What does iframe mean? For those who are new to HTML, they don’t seem to understand iframe very well. In order to learn iframe better, I would like to explain to you the floating frame iframe.

What does iframe mean? Detailed explanation of floating frame iframe

iframe tag is also called floating frame tag. iframe tag is also a special frame. It can be placed in a small window in the browser and can appear in any position on the page, but the entire page It must be on the frame page. The iframe frame completely requires the developer to define the height and width, and nest another web page in the web page.

iframe syntax:

<iframe src="源文件" width="浮动宽" height="浮动高"></iframe>

Reminder: In the above code, there must be a src and define the address of the source file. In the general structure, many browsers use frames. For development, we do not need to set the size. If it appears in a floating frame, the frame is placed on the web page, so we need to set the size of the frame. The height and width of the floating frame are expressed in pixels. [Recommended reading: Detailed explanation of the steps to operate iframe using jquery]

For example:

<!DOCTYPE html> 
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
    <div id="main">
        <h3>php中文网</h3>
        <iframe src="//m.sbmmt.com/" width="400px" height="300px"></iframe>
    </div>
</body>
</html>

The effect is as follows:

What does iframe mean? Detailed explanation of floating frame iframe

In the above code, we define a source file address and set the height and width. Everyone will see the frame size in the browser.

The above is what does iframe mean? A complete introduction to the detailed explanation of floating frame iframe. If you want to know more about CSS3 tutorial, please pay attention to the PHP Chinese website.


The above is the detailed content of What does iframe mean? Detailed explanation of floating frame iframe. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn