Mip-iframe is what mip-iframe how to use

Source: Internet
Author: User

If your site does not support HTTPS, you can use Baidu cloud acceleration or other services of the same type, open HTTPS

Title Content
Type General
Support layout Responsive, fixed-height, fixed
The required script No

Sample

Basic Use

<mip-iframe

allowFullScreen

Srcdoc= "<p>123</p>"

Src= "Http://m.baidu.com"

Sandbox= ""

allowFullScreen

Width= "400"

height= "300"

Allowtransparency= "true" >

</mip-iframe>

Add layout (Fixed-height for example)

<mip-iframe

layout= "Fixed-height"

Height= "50"

allowFullScreen

Srcdoc= "<p>123</p>"

Src= "Http://m.baidu.com"

Sandbox= ""

allowFullScreen

Width= "400"

height= "300"

Allowtransparency= "true" >

</mip-iframe>

Property

src

Description: The src attribute of the original IFRAME is consistent

Required option: Yes

Type: URL

Unit: None

Value: HTTPS address must be used

Default value: None

width

Note: The ratio of height to altitude is mip-iframe to calculate the scale and size of the area.

Required option: Yes

Type: Digital

Unit: None

Default value: None

Height

Description: The ratio to width is mip-iframe to calculate the scale and size of the area.

Required option: Yes

Type: Digital

Unit: None

Default value: None

allowFullScreen

Description: Consistent with the allowfullscreen properties of native iframe

Required option: No

Take value: null

Default value: None

Srcdoc

Description: Consistent with the srcdoc properties of native iframe

Required option: No

Type: Html_code

Unit: None

Value: The HTML content to display in the IFRAME. Must be valid HTML syntax.

Default value: None

Sandbox

Description: Consistent with the sandbox properties of native IFRAME

Required option: No

Type: string

Unit: None

Take value: "", Allow-same-origin,allow-top-navigation,allow-forms,allow-script

Default value: None

allowtransparency

Description: Consistent with the allowtransparency properties of native iframe

Required option: No

Type: string

Unit: None

Take value: "", True,false

Default value: None

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.