Home  >  Article  >  Daily Programming  >  What is Mip's inline frame component?

What is Mip's inline frame component?

藏色散人
藏色散人Original
2018-11-03 16:24:324505browse

This article mainly introduces the inline frame components in MIP.

MIP's inline frame component is a built-in component of MIP, and built-in component is a component included in mip.js, which can be used directly. An additional JS script needs to be introduced.

The tag of the inline frame component in MIP is .

Recommended reference is the mip user manual: "MIP Documentation Manual"

I believe everyone knows the iframe tag in HTML, that is, the iframe element will create another document that contains it. Inline frames (i.e. inline frames).

Then mip-iframe is a way to support embedding third-party content in MIP.

But it should be noted that the embedded content must comply with the HTTPS protocol.

A simple example of mip-iframe is as follows:

<mip-iframe
    layout="fixed-height" 
    src="https://www.php.cn" 
    allowfullscreen    width="400"
    height="300"
    allowtransparency="true">
</mip-iframe>

The effect is as shown:

What is Mips inline frame component?

When we drag the scroll bar, it will only affect the inner content in the frame. In fact, the usage is basically the same as that of ordinary iframe tags. Possible values ​​in the

mip-iframe tag are:

width and height attributes represent images set in conjunction with the height and width attributes respectively. Proportions, not actual width and height.

frameborder indicates whether to display the border around the frame.

srcdoc represents the HTML content that specifies the page displayed in the inline frame component.

sandbox indicates enabling a series of additional restrictions on content.

allowtransparencyThe property is set to "true" to indicate that the floating frame defines transparent content.

This article is a detailed introduction to the inline components in MIP. It is also very simple and easy to understand. I hope it will be helpful to friends in need!

The above is the detailed content of What is Mip's inline frame component?. 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