简体   繁体   English

如何在我的网站上添加一个元标记,以便在我的iPhone Web视图中,当该人持有链接时不会显示弹出窗口?

[英]How do I add a meta tag to my website so that in my iPhone web view, the pop up doesn't show when the person holds a link?

Right now, on the iphone, when the person holds down the link, , it'll have a bottom drawer pop up and say, "Open", "Copy", "cancel". 现在,在iPhone上,当该人按住链接时,它将弹出一个底部抽屉,并说“打开”,“复制”,“取消”。

I want to add a meta tag to disable this. 我想添加一个元标记以禁用此功能。

A meta tag will not disable them. 元标记不会禁用它们。 But the following css will: 但是以下CSS将:

a {
    -webkit-user-select: none;
}

EDIT : The CSS will not disable the menu from popping up. 编辑 :CSS不会禁用菜单从弹出。 It will only disable the magnifying glass. 它只会禁用放大镜。 The only way I know of that disables the menu is to use onClick instead of href. 我知道的唯一禁用菜单的方法是使用onClick而不是href。 Something like 就像是

<a onclick="window.location.href='somepage.html'">Link</a>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在我的网站上添加缩略图,以便当某人在Twitter或Facebook上共享链接时会显示图像和链接? - How do I add a thumbnail to my website so that when someone shares a link on Twitter or Facebook it shows the image and the link? 如何在我的网站上添加“添加到收藏夹”按钮或链接? - How do I add an "Add to Favorites" button or link on my website? 如何将HTML代码添加到我的网站,以便当人们单击它时,它与我打开WhatsApp对话? - How do I add an HTML code to my website so that when people click it, it opens a WhatsApp conversation with me? 将鼠标悬停在此网站上的“购物车”链接上时,如何实现显示的弹出框 - How do I implement this pop up box that displays when hovered over “Shopping Cart” link in this website 当我的链接被访问时,如何显示一个表单? - How do I make one form show up when my link is visited? 如何禁用灯箱弹出加载我的 WP 网站的某些页面 - How Do I Disable Lightbox Pop Up From Loading On Certain Pages Of My WP Website 我的拖放取消功能(弹出式),当我第二次尝试时不起作用(JQUERY) - My cancel function (pop-up) for a drag and drop Doesn't when i try it for the second time (JQUERY) 如果此人不符合条件,我如何使我的JavaScript提示重定向到其他页面 - How do I make my JavaScript prompt redirect to a different page if the person doesn't qualify 我的自定义分类 url 链接的页面不显示 - page for my custom taxonomy url link doesn't show up 如果我将 onClick 添加到 div 整个网站不会显示 - If I add onClick to div the whole website doesn't show up
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM