html - Display problem of iframe nested webpage on iPhone
仅有的幸福
仅有的幸福 2017-06-06 09:53:04
0
2
953

<!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?

仅有的幸福
仅有的幸福

reply all(2)
洪涛

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

伊谢尔伦
<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.

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