iOS 亚麻背景CSS?

发布于 2024-11-25 00:53:43 字数 152 浏览 2 评论 0原文

是否可以通过 CSS/Javascript 自定义在移动 safari 中滚动经过页面末尾/顶部时显示的亚麻背景?

我知道这可以通过 Obj C 完成,但我不是在开发应用程序,而是在本机移动 safari 中为网络开发一个网站。

是否可以?如果是这样怎么办?

Is it possible to customize the linen background shown when you scroll past the end/top of the page in mobile safari via CSS/Javascript?

I know it can be done via Obj C, but Im not developing an application, Im developing a website in native mobile safari for the web.

Is it possible? If so how?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

猫性小仙女 2024-12-02 00:53:43

无法自定义此背景。

我能想到的唯一解决方法是通过 preventDefault() 禁用滚动 - 在 window 上处理各种触摸事件并实现您自己的滚动。

There is no way to customize this background.

The only workaround I can think of is to disable scrolling by preventDefault()-ing the various touch events on window and implement your own scrolling.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文