-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;
值
形式定义
形式语法
-webkit-touch-callout = default | none
示例
关闭触摸呼叫框
css
.example {
-webkit-touch-callout: none;
}
规范
不属于任何标准。Apple 在 Safari CSS 参考中有相关描述。
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
-webkit-touch-callout |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Non-standard. Check cross-browser support before using.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.