https://www.desmos.com/calculator?lang=zh-CN
此网站时,电脑端页面正常,手机端无法横向滑动及缩放
<div class="container">
<iframe src="https://www.desmos.com/calculator/vgfqbejegx?lang=zh-CN" scrolling="yes" class="container" ></iframe>
</div>
<style scoped>
.container{
height:500px;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
.frame{
width:100%;
height:100%;
}
因为 https://www.desmos.com/calculator/vgfqbejegx?lang=zh-CN 网站的头部,设置了 mate viewport,告诉了在移动端该如何缩放页面
并且网站也没有设置最小宽度,默认宽度就是设备宽度,你这里面就是iframe的宽宽,所以不会出现滚动条