现在的位置: 首页 > 综合 > 正文

safari上的鼠标点击hover css属性-webkit-tap-highlight-color

2013年03月12日 ⁄ 综合 ⁄ 共 564字 ⁄ 字号 评论关闭

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);

抱歉!评论已关闭.