【发布时间】:2013-02-21 21:38:09
【问题描述】:
使用 Surface,您可以将手指放在链接上并选择复制它。这对我来说是不受欢迎的行为。这可以在 iOS 中禁用:
-webkit-touch-callout: none;
有谁知道如何为 IE 禁用它?
【问题讨论】:
标签: html css internet-explorer touch
使用 Surface,您可以将手指放在链接上并选择复制它。这对我来说是不受欢迎的行为。这可以在 iOS 中禁用:
-webkit-touch-callout: none;
有谁知道如何为 IE 禁用它?
【问题讨论】:
标签: html css internet-explorer touch
其他名称略有不同。
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
【讨论】:
您可能正在寻找:
-ms-touch-select: none;
-ms-touch-action: none;
与上述一起,我还在 body{} 上使用它来自动隐藏 IE 10 中的滚动条:
-ms-overflow-style: -ms-autohiding-scrollbar;
这里还有更多:http://msdn.microsoft.com/en-us/library/windows/apps/hh996923.aspx
【讨论】:
您还可以通过将事件回调绑定到 contextmenu 事件来取消默认响应。这在 IE 中适用于触摸,就像它在所有鼠标浏览器中一样:
window.addEventListener("contextmenu", function(e) { e.preventDefault(); })
【讨论】: