Add the following code to the CSS style of the element that generates the background color when clicking: -webkit-tap-highlight-color: transparent; ps: Let's take a look at the css to cancel the background color of the a tag when it is clicked on the mobile terminal 1. Cancel the blue color of the a tag when it is clicked on the mobile terminal -webkit-tap-highlight-color: rgba(255, 255, 255, 0); -webkit-user-select: none; -moz-user-focus: none; -moz-user-select: none; 2. When using an image as the click button of the a tag, there is often a gray background when touchstart is triggered a,a:hover,a:active,a:visited,a:link,a:focus{ -webkit-tap-highlight-color:rgba(0,0,0,0); -webkit-tap-highlight-color: transparent; outline:none; background: none; text-decoration: none; } 3. Change the background color of the selected content ::selection { background: #FFF; color: #333; } ::-moz-selection { background: #FFF; color: #333; } ::-webkit-selection { background: #FFF; color: #333; } 4. Remove the gray background when clicking the ios input box -webkit-tap-highlight-color:rgba(0,0,0,0); Summarize The above is the CSS that I introduced to you to remove the background color of elements when clicking on the mobile terminal. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! |
<<: Specific use of the autoindex module in the Nginx Http module series
>>: vue.js Router nested routes
structure body, head, html, title text abbr, acro...
Table of contents DOMContentLoaded and load What ...
The reason why Docker is so popular nowadays is m...
Solution to Host 'xxxx' is not allowed to...
This article mainly introduces the effect of div ...
WeChat applet: Simple calculator, for your refere...
Table of contents Basic application of javascript...
Table of contents 1. Introduction 2. Install Dock...
Adding a network interface to the container 1 Run...
The specific code is as follows: <a href="...
DOMContentLoaded Event Literally, it fires after ...
Table of contents Overview Application scenarios ...
Study plans are easily interrupted and difficult ...
Overview As for the current default network of Do...
ElementUI implements the table list paging effect...