Home > Article > Web Front-end > How to remove the color of a tag in css
How to remove the color of the a tag in css: first open the corresponding code file; then find the content of the a tag; finally cancel the a tag through attributes such as "-webkit-user-select: none;" and click on the mobile terminal The blue color is enough.
The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.
The method is as follows:
Cancel the blue color when the a label 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;
When using a picture as the click button of the a label, when touchstart is triggered, There is often a gray background:
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; }
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; }
Remove the gray background when the ios input box is clicked:
-webkit-tap-highlight-color:rgba(0,0,0,0);
[Recommended learning: css video tutorial】
The above is the detailed content of How to remove the color of a tag in css. For more information, please follow other related articles on the PHP Chinese website!