1. Cancel the blue color of the a tag when it is clicked on the mobile terminal a { -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); 5. Remove the blue background when the picture is selected in iOS img { -webkit-tap-highlight-color:rgba(0,0,0,0); -webkit-tap-highlight-color: rgba(255, 255, 255, 0); -webkit-user-select: none; -moz-user-focus: none; -moz-user-select: none; user-select: none; } This is the end of this article about canceling the background color of the a label when it is clicked. For more relevant a label background color content, please search 123WORDPRESS.COM’s previous articles or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future! |
<<: The connection between JavaScript constructors and prototypes
>>: Use CSS to set the width of INPUT in TD
Table of contents 1. DOM & BOM related 1. Che...
This tutorial is only applicable to Windows syste...
This article shares the MySQL installation tutori...
vertical-align attribute is mainly used to change...
Preface To solve the single point of failure, we ...
First you need to install Vue-cli: npm install -g...
1. Problem description <br />When JS is use...
Table of contents 1. Rendering 2. Implementation ...
The <link> tag defines the relationship bet...
1. The color of the scroll bar under xhtml In the ...
Demand background The project is made using Vue, ...
Insert Baidu Map into the web page If you want to...
0x00 Introduction WordPress is the most popular C...
Optimization ideas There are two main optimizatio...
Preface I recently wanted to learn CocosCreator, ...