css - Ios 设备 CSS 网格的不需要的滚动到顶部
问题描述
我在移动 Safari 中的滚动条出现问题,当您向下滚动时,我创建的卡片会自动转到顶部。滚动条在 android 和 desktopas 中完美运行,如链接所示https://www.besocialscene.com/new-sept-homepage?hs_preview=YhTtsyAc-13258353405但在 Ios 上效果不佳。见下文。
CSS 保存在 Jfiddlehttps://jsfiddle.net/cfpywmd6/
我尝试将此样式添加到容器中,但仍然无法正常工作
max-height:100%;
解决方案
.back .description ul {
position: absolute;
}
.back .description ul .draw-border {
width: calc(100% - 5px);
}
推荐阅读
- python - 如何将使用 scikit-learn 插值的结果放入列表或字典中?
- boost-asio - 为什么我得到 io_context do_one() 运行时崩溃?
- excel - Excel Range.PivotField 等效于 JavaScript API
- azure-devops - 是否可以在构建任务中为 Azure DevOps 服务连接设置默认值?
- ruby-on-rails - 使用 rails 构建登录 api 后端功能
- vb.net - 使用 vb.net 中的查询检测冲突时间?
- android - 从第二个活动返回导航后,如何在不缓冲的情况下播放视频?
- css - 程序看不到我的视频(CSS、EXPRESS)
- javascript - 获取 @types/node 的正确类型
- javascript - Javascript 在 jsf 中单击按钮时无法获取正确的 id