更改HTML符号的字体颜色 [英] Changing font color of HTML Symbol

查看:164
本文介绍了更改HTML符号的字体颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更改HTML符号的颜色时遇到问题,我有这个问题

i am having an issue when changing the color of a HTML Symbol, what i have is this

<span style="color: rgb(42, 170, 82);">&#9899;</span>

,由于某些奇怪的原因,某些Google chrome无法更改字体颜色(在IE,FF和大多数GC上都可以正常工作),如果有人对这个问题有所了解,请赐教。谢谢

and for some odd reason on some google chrome did not change the font color (works fine on IE, FF and most of GC), if anyone know something about this issue please enlighten me. Thanks

推荐答案

FIX:

<span style="color: rgb(42, 170, 82);">&#9899;</span>

<span style="color: transparent;  text-shadow: 0 0 0 green; ">&#9899;</span>

<span style="color: transparent;  text-shadow: 0 0 0 rgb(42, 170, 82); ">&#9899;</span>

此功能适用于Chrome浏览器,希望对您有所帮助。

This works for Chrome hope it helps you bro.

这篇关于更改HTML符号的字体颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆