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
In the process of designing a web page, designers...
The specific code is as follows: The html code is...
Recently, when I was learning how to use webpack,...
Two cases: 1. With index 2. Without index Prerequ...
Organize the MySQL 5.5 installation and configura...
Inserting Data insert into table name (column nam...
The latest Insider version of Visual Studio Code ...
Table of contents 1. How to obtain elements Get i...
Table of contents Purpose of the table For exampl...
【question】 When the outer table and the inner tab...
Openlayers is a modular, high-performance and fea...
This article example shares the specific code of ...
Table of contents 1. CentOS7+MySQL8.0, yum source...
This article shares the specific code for JavaScr...
1. docker ps -a view the running image process [r...