Home >Web Front-end >HTML Tutorial >Understanding of CSS properties-webkit-tap-highlight-color

Understanding of CSS properties-webkit-tap-highlight-color

PHP中文网
PHP中文网Original
2017-06-17 17:16:141300browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn