在 iPad 上缩放网站时出现问题

发布于 2024-12-26 00:06:55 字数 170 浏览 3 评论 0原文

我开发了以下网页:www.projekt-meine-zukunft.at 在 Safari 中显示得很好,问题是两指缩放不起作用。现在我不知道为什么我不能像其他网页一样用两指手势缩小网页。我想向您展示代码片段,但我不知道哪个对您有帮助。 也许是 css 问题?

顺便说一句,该页面是用 Drupal 开发的。

I developed the following webpage: www.projekt-meine-zukunft.at
It is shown quite well in Safari, the problem is that two-finger zooming doesn't work. Now I have no idea why I can't make the webpage smaller with two-finger gesture like it works with other webpages. I would like to show you code-snippets, but I don't know which would help you.
Could it be a css-problem maybe?

The page is developed with Drupal by the way.

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

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

发布评论

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

评论(1

最偏执的依靠 2025-01-02 00:06:55

您有以下 JavaScript 代码,它通过设置 minimum-scale = 1、maximum-scale = 1 向用户展示缩放:

// In Safari, the true version is after "Safari" or after "Version"
                else if ((verOffset=nAgt.indexOf("Safari"))!=-1) {
                 browserName = "Safari";
                 document.writeln('<meta name="viewport" id="view" content="user-scalable=yes, width=device-width minimum-scale = 1, maximum-scale = 1" />');
                 document.writeln('<link rel="stylesheet" media="all and (orientation:portrait)" href="/themes/pmz/css/portrait.css" />');
                }

You have the following JavaScript code, which is presenting users from scaling by setting minimum-scale = 1, maximum-scale = 1:

// In Safari, the true version is after "Safari" or after "Version"
                else if ((verOffset=nAgt.indexOf("Safari"))!=-1) {
                 browserName = "Safari";
                 document.writeln('<meta name="viewport" id="view" content="user-scalable=yes, width=device-width minimum-scale = 1, maximum-scale = 1" />');
                 document.writeln('<link rel="stylesheet" media="all and (orientation:portrait)" href="/themes/pmz/css/portrait.css" />');
                }
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文