gpt4 book ai didi

html - 在文本框上滑动时 iPhone 滚动错误

转载 作者:太空狗 更新时间:2023-10-29 15:12:46 25 4
gpt4 key购买 nike

我有a webpage使用以下 html:

<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=0">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div style='display:flex;flex-direction:column;height:100%;'>
<div style='overflow:auto'>
<div style='height:500px; background:green;'></div>
<div class='container'>
<div class='row'>
<div class='col-sm-6'>
<input type='text' style='' class='form-control' placeholder='swipe here' />
</div>
</div>
</div>
<div style='height:500px; background:blue;'></div>
</div>
</div>
</body>
</html>

将它加载到 iPhone 上。尝试通过滑动来上下滚动。现在尝试通过在显示“在此处滑动”的文本框处开始滑动来滚动。和我一起,当我这样做时它不会滚动。我使用的是 iPhone 6S。

这是一个错误吗?我该如何解决?

最佳答案

此问题出现在 iPhone 6s 及更高版本上。

这似乎是由 <div style='overflow:auto'> 引起的.当 overflow被删除后,页面也会在滑动文本框时滚动。

在 iPhone 6s、6s+、7、8 和 X 上的 safari 中进行了测试。希望对您有所帮助。

关于html - 在文本框上滑动时 iPhone 滚动错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48923327/

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