The default link color is blue.
How to remove the default link color of the html hyperlink tag <a>
?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
- Adding a timeout to a render function in ReactJS
This is also possible:
Source: Mozilla description of all
Simply add this in
CSS
,that's it, done.
You can use System Color (18.2) values, introduced with CSS 2.0, but deprecated in CSS 3.
That way your anchor links will have the same color as normal document text on this system.
Let's say your default color is green (#0F0), then you should add this to the top of your CSS:
a {color:#0F0}
If you don't want to see the text decoration and default color which is provided by the browser, you can keep the following code in the top of your main.css file. So if you need some different color & decoration styling property you can override easily in the below of this code snippet in the style file.
The inherit property:
… will cause the element to take on the colour of its parent (which is what I think you are looking for).