search

Home  >  Q&A  >  body text

html - Display problem of iframe nested webpage on iPhone

<!DOCTYPE html>
<html>
<head>
</head>
<body>
<iframe src="https:/ /www.baidu.com/" style="width:100%;height:500px;"></frame>
</body>
</html>

The display effect of using iframe nested web pages is that the content text is much smaller, but the page style is consistent. (Screenshot of Chrome simulator under Mac screen, the same is true when tested on iPhone.)

Normal display page

How to solve this problem?

仅有的幸福仅有的幸福2733 days ago961

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-06-06 09:55:04

    Is there no mobile adaptation?
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    Try this

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-06-06 09:55:04

    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />

    Add a mobile-adapted meta. For more information, please refer to HTML Meta tags.

    reply
    0
  • Cancelreply