javascript - An iframe is nested in a web page. The web page and the iframe viewport are different. How can I prevent the web page in the iframe from deforming?
迷茫
迷茫 2017-07-03 11:42:58
0
2
1289

Web page:

<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">`

iframe:

  <meta name="viewport" content="width=750,maximum-scale=1.3,user-scalable=no,minimal-ui">

Now the content in the iframe is deformed. If the size of the html and iframe content is not changed, how can the iframe content not be deformed?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
黄舟

Set the iframe’s padding to 0 and so on

typecho

First of all, is the page linked to your iframe responsive? If so, is the size of the iframe consistent with the original page size?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template