How to remove the color of a tag in css

藏色散人
Release: 2023-01-05 16:07:51
Original
9214 people have browsed it

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.

How to remove the color of a tag in css

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;
Copy after login

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; }
Copy after login

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; }
Copy after login

Remove the gray background when the ios input box is clicked:

-webkit-tap-highlight-color:rgba(0,0,0,0);
Copy after login

[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!

Related labels:
css
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!