Iframe usage and iframe usage

Source: Internet
Author: User

Iframe usage and iframe usage

<Iframe src = "http://caiyanli.top/" height = "500" width = "500" frameborder = "0"

Marginheight = "2" marginwidth = "0" scrolling = "yes"> </iframe>

Note: iframe h5 adds a label. The element will create an inline framework (intra-row framework) containing another document ).

You can place the required text between <iframe> and </iframe> to handle browsers that cannot understand iframe.

Iframe attributes and values and functions

 

Attribute

Value

Function

Frameborder

  • 1
  • 0

Specifies whether to display the border around the frame.

Height

  • Pixels
  • %

Specify the iframe height.

Longdesc

URL

Specifies a page that contains a long description of iframe.

Marginheight

Pixels

Defines the top and bottom margins of iframe.

Marginwidth

Pixels

Defines the left and right margins of iframe.

Name

Frame_name

Specifies the iframe name.

Sandbox

  • ""
  • Allow-forms
  • Allow-same-origin
  • Allow-scripts
  • Allow-top-navigation

Enable a series of additional restrictions on the content in <iframe>.

Scrolling

  • Yes
  • No
  • Auto

Specifies whether to display the scroll bar in iframe.

Seamless

Seamless

The rule <iframe> looks like a part of the document.

Src

URL

Specifies the URL of the document displayed in iframe.

Srcdoc

HTML_code

Specifies the HTML content of the page displayed in <iframe>.

Width

  • Pixels
  • %

Defines the iframe width.

 

Code:

<! DOCTYPE html>
<Html lang = "en">
<Head>
<Meta charset = "UTF-8">
<Title> my webpage </title>
</Head>
<Body bgcolor = "# ff9900">
<H1> my webpage <Hr>
<Iframe src = "http://caiyanli.top/" height = "500" frameborder = "0" marginheight = "2" marginwidth = "0" scrolling = "yes"> cannot see me </iframe>
</Body>
</Html>

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.