【问题标题】:IE10 prevent selection on elements at onTouch(-ms-touch-action)IE10 防止在 onTouch(-ms-touch-action) 上选择元素
【发布时间】:2013-11-01 19:13:54
【问题描述】:

我尝试在此示例中创建类似的内容:http://jsfiddle.net/WM583/20/ on Windows RT with IE10。

问题是,被触摸的元素总是在触摸时被选中,这看起来很糟糕。我试过了:

-ms-touch-select:none;
-ms-user-select:none;
user-select:none;

但它仍然被选中。有人知道如何防止选择吗?

【问题讨论】:

    标签: scroll touch internet-explorer-10 internet-explorer-11 windows-rt


    【解决方案1】:

    试试下面的

    特殊元标记

    <meta name="msapplication-tap-highlight" content="no" />
    

    还有下面的样式

    a:active{background-color:transparent !important;}
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-02-15
      • 2013-02-27
      • 2012-11-09
      • 2020-08-18
      • 1970-01-01
      • 2020-09-11
      相关资源
      最近更新 更多