gpt4 book ai didi

iframe 滚动 iOS 8

转载 作者:行者123 更新时间:2023-12-03 07:15:47 26 4
gpt4 key购买 nike

我有一个 iframe,我需要它有滚动溢出。它似乎可以在桌面上运行,我使用了一种解决方法使其可以在 iOS 中运行。现在它可以在 Android 和 iOS 上运行。然而,iOS8却失败了。

    <html>
<body>
<style type="text/css">
.scroll-container {
overflow: scroll;
-webkit-overflow-scrolling: touch;
}
#iframe_survey {
height: 100%;
}

.scroll-container {
height: 100%;
width: 100%;
overflow: scroll;
}
</style>

<div class="scroll-container scroll-ios">
<iframe id="iframe_survey" src="www.iframe.com" style="border:0px #FFFFFF none;" name="myiFrame" frameborder="0" marginheight="0px" marginwidth="0px" width="100%"></iframe>
</div>
</body>

最佳答案

这样使用代码

<div style="overflow:auto;-webkit-overflow-scrolling:touch">
<iframe style="width:100%;height:600px" src="www.iframe.com"></iframe>
</div>

关于iframe 滚动 iOS 8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26046373/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com