-webkit-touch-callout
非標準:此特性未標準化。我們不建議在生產環境中使用非標準特性,因為它們瀏覽器支援有限,並且可能會更改或被移除。但是,在沒有標準選項的特定情況下,它們可以是合適的替代方案。
-webkit-touch-callout CSS 屬性控制當您觸控並按住觸控目標時顯示的預設標註的顯示。
在 iOS 上觸控並按住目標時,Safari 會顯示有關連結的標註資訊。此屬性允許停用該行為。
語法
css
/* Keyword values */
-webkit-touch-callout: default;
-webkit-touch-callout: none;
/* Global values */
-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 參考中有一個描述。
瀏覽器相容性
載入中…