CSS property: -webkit-tap-highlight-color
Description
Overrides the highlight color shown when the user taps a link or a JavaScript clickable element in Safari on iPhone.
This property obeys the alpha value, if specified. If you don’t specify an alpha value, Safari on iPhone applies a default alpha value to the color. To disable tap highlighting, set the alpha value to 0 (invisible). If you set the alpha value to 1.0 (opaque), the element is not visible when tapped.
Syntax
-webkit-tap-highlight-color: <color>;
Values
-
<color>
-
The tapped link color.
Versions
例子
/* -webkit-touch-callout:none;*/
-webkit-tap-highlight-color:rgba(0,0,0,0);
-webkit-tap-highlight-color:rgba(0,0,0,0);
本文深入解析CSS中的-webkit-tap-highlight-color属性,如何在Safari for iPhone上自定义点击高亮颜色,并提供实际应用案例。
1915

被折叠的 条评论
为什么被折叠?



