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

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

PHP中文网
Release: 2017-06-17 17:16:14
Original
1286 people have browsed it

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>
Copy after login

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>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template