mip-iframe
mip-iframe is a way to support embedding third-party content in mip. It should be noted that the embedded content must comply with the https protocol.
If your website does not support https, you can use Baidu Cloud Acceleration or other similar services to activate https.
Baidu Cloud Acceleration activation steps:
<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 is an 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>
AttributesrcDescription: It has the same effect as the src attribute of the native iframe
Required option: Yes
Type: URL
Unit: None
Value: Must use https address
Default value: None
Required options: Yes
Type: Number
Unit: None
Default value: None
Required option: Yes
Type: Number
Unit: None
Default value: None
allowfullscreen attribute of the native iframe
Required option: No
Value: empty
Default value: None
srcdoc attribute of the native iframe
Required option: No
Type: HTML_code
Unit: None
Value: To be displayed in the iframe HTML content. Must be valid HTML syntax.
Default value: None
sandbox attribute of the native iframe
Required option: No
Type: string
Unit: None
Values: "", allow-same-origin,allow-top-navigation,allow-forms,allow-script
Default value: None
allowtransparency attribute of the native iframe
Required option: No
Type: String
Unit: None
Value: "", true ,false
Default value: None