Resolves a translucent gray background on mobile iphone devices when clicked

Source: Internet
Author: User

Issue: A translucent gray background appears when you tap on an iphone device.

Workaround:

html,body{      -webkit-tap-highlight-color:rgba (0, 0, 0, 0);  }  

-webkit-tap-highlight-color is a new attribute of CSS3, which is used only for IOS (iphone and ipad). When you click on a link or a clickable element defined by Javascript, it will appear with a translucent gray background. You can set the-webkit-tap-highlight-color to any color, want to disable this background, set the color transparency to 0.

Learn essays, I also see on the Internet, at any time to record. Then according to their own understanding of the collation, the wrong place to correct, thank you!

Resolves a translucent gray background on mobile iphone devices when clicked

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.