Remove the A-label chain when touching and creating a border

Source: Internet
Author: User

Exclude misunderstanding

Network data said that this property is only used for iOS (iphone and ipad), in fact, is wrong, Android phone most of the support, but the display is not the same, mobile development is not mature, more need to practice to identify the authenticity of-

-webkit-tap-highlight-color usage

WebKit Kernel Browser, when the user clicks on a link or a clickable element defined by JS, a translucent gray background or red border will appear.

If you want to disable highlighting, you can set the alpha value of the color to 0, which means that the last digit of the property value is set to 0 to remove the background or border.

Remove the CSS code that creates a border when the Android chain touches touch

A,button,input{-webkit-tap-highlight-color:rgba (255,0,0,0);} /* 1. Remove the border generated when the Android A/button/input tag is clicked 2. Remove the translucent gray background generated when the iOS a tag is clicked */

Remove the A-label chain when touching and creating a border

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.