Home >Web Front-end >HTML Tutorial >Understanding of CSS properties-webkit-tap-highlight-color
1.-webkit-tap-highlight-color
This property is only available on iOS (iPhone and iPad). When you click on a link or clickable element defined through Javascript, it will appear with a semi-transparent gray background. To reset this behavior, you can set -webkit-tap-highlight-color to any color.
To disable this highlighting, set the color's alpha value to 0.
Example: Set the highlight color to 50% transparent red:
<code>-webkit-tap-highlight-color: rgba(255,0,0,0.5);</code>
Browser support: iOS (iPhone and iPad) only.
2.-webkit-text-size-adjust
Some font sizes render larger on Safari (iPhone)
<code>示例:-webkit-text-size-adjust: none;</code>
References:
The above is the detailed content of Understanding of CSS properties-webkit-tap-highlight-color. For more information, please follow other related articles on the PHP Chinese website!