-webkit-touch-callout

非标准: 该特性是非标准的,请尽量不要在生产环境中使用它!

-webkit-touch-callout CSS 属性控制触摸并按住触摸目标时显示的默认标注。

在 iOS 上,当目标被触摸并长按时,Safari 会显示关于链接的标注信息。此属性允许禁用该行为。

语法

css
/* 关键字值 */
-webkit-touch-callout: default;
-webkit-touch-callout: none;

/* 全局值 */
-webkit-touch-callout: initial;
-webkit-touch-callout: inherit;
-webkit-touch-callout: revert;
-webkit-touch-callout: revert-layer;
-webkit-touch-callout: unset;

default

显示默认的标注。

none

禁用标注。

形式定义

初始值default
适用元素所有元素
是否是继承属性
计算值as specified
动画类型离散值

形式语法

-webkit-touch-callout =
  default | none

示例

关闭触摸呼叫框

css
.example {
  -webkit-touch-callout: none;
}

规范

不属于任何标准。Apple 在 Safari CSS 参考中有相关描述

浏览器兼容性

BCD tables only load in the browser

参见