非标
此特征是非标准的,且不在标准轨道中。不要在面向 Web 的生产站点中使用它:它不适用于每个用户。实现之间可能存在大的不兼容性,且行为将来可能改变。

-ms-touch-select CSS 特性为 Microsoft extension that toggles the gripper visual elements that enable touch text selection.

初始值 grippers
适用于 所有元素
继承 yes
计算值 如指定
动画类型 discrete

句法

grippers

The grippers are always on. In addition, selection will start even if an onclick , onmsgesturetap ,或 onmouseup handler is present. This is the initial value.

none

The grippers are always off and default touch selection functionality is not provided.

形式句法

grippers | none
					

规范

Not part of any specification.

备注

This property requires Windows 8 or later.

-ms-touch-select property should only be used by applications that provide their own selection experience. Most other applications should use the -ms-user-select 特性代替。

If you choose to hide the grippers, you should ensure that users have a mechanism for selecting text via touch. To find out how to do this using JavaScript, see the HTML5 Selection APIs.

This property has no effect on mouse, keyboard, or touchpad interaction.

元数据

  • 最后修改:
  1. CSS
  2. CSS 参考