html – 在Windows 8.1 / Firefox版本32中,CSS Unicode检查标记/刻度已变为绿色/红色

更新到Firefox版本32后,我网站上所有重的勾选标记/刻度都已更新为可爱的不符合放射性的绿色.

此问题似乎与WINDOWS 8.1和FIREFOX V32隔离

UNICODE样本

(✔,☑,✖,)

U+237B ⍻ not check mark
U+2610 ☐ ballot Box
U+2611 ☑ ballot Box with check (GREEN)
U+2705 ✅ white heavy check mark
U+2713 ✓ check mark
U+2714 ✔ heavy check mark (GREEN)
U+2716 ✖ Heavy multiplication (RED)

FIREFOX V32(截图)

CHROME V37(截图)

这不是Firefox版本31中的问题
使用css颜色属性管理的其他文本.

>如何在所有流行的现代浏览器中管理unicode ticks的颜色?
>为什么,为什么,为什么? (我可以理解认但是重叠设置似乎不合逻辑,我打赌这是一个移动/平板电脑补偿).

在FIREBUG中查看此帖子来源的屏幕截图
还是绿的! :○

TEST AREA

解决方法

请参阅以下URL,该URL将显示问题的原因: https://bugzilla.mozilla.org/show_bug.cgi?id=1054780

特别是这篇文章:Gijs Kruitbosch似乎很好地总结了这个问题并提供了一个可行的工作:

This is reproducible on Nightly on Windows 8.1. AFAICT Segoe UI Emoji
is new in Windows 8,and that’s what’s causing issues here.

There might be a way to turn off Windows’s coloring for the font
(apparently this exists in XAML,but perhaps only for Windows Phone,
and I don’t kNow if they expose that any other way),which would be
one option.

The simpler option seems to be using Segoe UI Symbol instead,which
has at least all of these characters (I’m unfamiliar enough with
unicode that I don’t kNow if/when this is a complete substitution for
the Emoji variant of the font,and/or for what ranges).

使用Segoe UI Symbol的建议似乎有效,将示例中的CSS更改为:

div {
    background:#111;
    color:#fff;
    font-family: Segoe UI Symbol;
}

再次导致白色蜱虫.

更新了CSS套牌示例:http://cssdeck.com/labs/dzemruoi

如果你不想在它自己的单独容器中包围tick以更改font-family,则可以将Segoe UI Symbol指定为后备,并且当其他文本将使用首选字体时,勾号仍将正确显示

div {
    background:#111;
    color:#fff;
    font-family: arial,Segoe UI Symbol;
}

CSS deck示例与其他文本:http://cssdeck.com/labs/gzgwlhpb

相关文章

vue阻止冒泡事件 阻止点击事件的执行 <div @click=&a...
尝试过使用网友说的API接口获取 找到的都是失效了 暂时就使用...
后台我拿的数据是这样的格式: [ {id:1 , parentId: 0, name:...
JAVA下载文件防重复点击,防止多次下载请求,Cookie方式快速简...
Mip是什么意思以及作用有哪些