-webkit-触摸标注等效IE(-webkit-touch-callout equivalent

2019-07-20 08:37发布

使用表面,它可以保持一个链接,你的手指,并得到一个选项来复制它。 这对我来说是意外的行为。 这可以在iOS中被禁用有:

-webkit-touch-callout: none;

没有人知道如何禁用它的IE浏览器?

Answer 1:

命名有少许不同的一切。

-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;


Answer 2:

你可能会寻找:

-ms-touch-select:   none;
-ms-touch-action:   none;

连同以上,我还对身体{}在IE 10自动隐藏滚动条使用此:

-ms-overflow-style: -ms-autohiding-scrollbar;

还有更多在这里: http://msdn.microsoft.com/en-us/library/windows/apps/hh996923.aspx



Answer 3:

您也可以取消事件的回调结合contextmenu事件的默认响应。 这在IE触摸喜欢它总是在鼠标所有的浏览器:

window.addEventListener("contextmenu", function(e) { e.preventDefault(); })


文章来源: -webkit-touch-callout equivalent for IE