I have some simple code which shows phone number and the user should be able to click on it and make a call:
<tr>
<td>Telefon</td>
<td><a href="tel:123">123</a></td>
</tr>
I would like to have classic black font instead of blue hyperlink so i wrote this in my CSS file:
a[href^="tel:"] {
color: black;
text-decoration: none;
}
It works completely fine on desktop browsers but on mobile, users still get a blue hyperlink instead of just black text which they can click. Can I force mobile browsers to show just black test but as a hyperlink?
try inline CSS like this
<tr>
<td>Telefon</td>
<td>
<a href="tel:123" style="color:black;text-decoration: none;">123
</a>
</td>
</tr>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.