[英]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.