Remove the highlighted box that appears when you click the Mobile browser button

Source: Internet
Author: User

In the work often encountered in the mobile browser to browse the Web page, click on the page button or a click event element, there will be a default highlight box, affecting the overall sense of experience.

We can solve this with a simple CSS3 property, which is:

-webkit-tap-highlight-color

Give me a chestnut:

<a class= "Html5logo" href= "javascript:void (0);" ></a>

Add the appropriate CSS style to the button:

-webkit-tap-highlight-color:rgba (0,0,0,0);-webkit-tap-highlight-color:transparent; /* For some androids */

Done!

After this processing, this a tag is no click on the style, if you want to add, you can add the pseudo-class style, here will not repeat the


Remove the highlighted box that appears when you click the Mobile browser button

Related Article

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.