@supports(-webkit-touch-callout:none)在iOS 15 Safari中不起作用

发布于 2025-01-26 04:58:02 字数 700 浏览 2 评论 0原文

我正在尝试使用CSS瞄准iOS设备。一般建议是使用:

@supports (-webkit-touch-callout: none) {
    ...
}

但是,这似乎不适用于iOS 15 Safari。这是真的吗?

看起来应该从苹果开发人员docs (上次更新2016年),但是类似的问题是在此报告

如果此代码与iOS 15不起作用,那么工作是什么?

I'm trying to target iOS devices with CSS. The general advice is to use:

@supports (-webkit-touch-callout: none) {
    ...
}

However, this does not seem to work with iOS 15 Safari. Is this true?

It looks like it is supposed to work from the Apple developer docs (last updated 2016), but a similar problem is reported here.

If this code does not work with iOS 15, what is the work-around?

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

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

发布评论

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

评论(1

全部不再 2025-02-02 04:58:02

我可以确认@supports(-webkit-touch-callout:none)仍然可以在Safari iOS上正常工作15.4.1。

I can confirm @supports (-webkit-touch-callout: none) still working fine on Safari iOS 15.4.1

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