-webkit-touch-callout
Non-standard: This feature is not standardized. We do not recommend using non-standard features in production, as they have limited browser support, and may change or be removed. However, they can be a suitable alternative in specific cases where no standard option exists.
Thuộc tính CSS -webkit-touch-callout kiểm soát việc hiển thị hộp thông tin mặc định xuất hiện khi bạn chạm và giữ vào một đối tượng cảm ứng.
Khi một đối tượng được chạm và giữ trên iOS, Safari hiển thị một hộp thông tin về liên kết đó. Thuộc tính này cho phép tắt hành vi đó.
Cú pháp
css
/* Giá trị từ khóa */
-webkit-touch-callout: default;
-webkit-touch-callout: none;
/* Giá trị toàn cục */
-webkit-touch-callout: initial;
-webkit-touch-callout: inherit;
-webkit-touch-callout: revert;
-webkit-touch-callout: revert-layer;
-webkit-touch-callout: unset;
Giá trị
Định nghĩa hình thức
| Initial value | default |
|---|---|
| Applies to | all elements |
| Inherited | yes |
| Computed value | as specified |
| Animation type | discrete |
Cú pháp hình thức
-webkit-touch-callout =
default |
none
Ví dụ
>Tắt hộp thông tin cảm ứng
css
.example {
-webkit-touch-callout: none;
}
Đặc tả kỹ thuật
Không thuộc bất kỳ tiêu chuẩn nào. Apple có mô tả trong Safari CSS Reference.