问题描述
我尝试在形成此箭头的导航栏中显示字符代码❯
:
I am trying to display character code ❯
in a breadcrumb trail navigation which forms this arrow: ❯
它在Firefox,Opera和IE中正常显示,但不在Chrome中。我做错了什么,或者这是Chrome中的错误?是否有任何解决方法?
It displays properly in Firefox, Opera, and IE but not in Chrome. Am I doing something wrong, or is this a bug in Chrome? Are there any workarounds?
我在Windows 7 Professional 64位上使用Google Chrome 32.0.1700.107 m版本。
I am using Google Chrome Version 32.0.1700.107 m on Windows 7 Professional 64 bit.
推荐答案
这几乎与,但由于这个问题具体是关于IE和这一个是关于Chrome,我将复制答案,修改,在这里:
This is almost a duplicate of Can't display character on IE 9, but since that question is specifically about IE and this one is about Chrome, I’ll copy the answer, with modifications, here:
浏览器(包括Chrome)在某个元素所指定的字体中不存在字符时,或者在没有这样的规范的情况下,在浏览器的默认字体中,有时难以呈现该字符。浏览器应该检查系统中的所有字体,找到一个包含字符的字体,但有时他们没有这样做。有时的原因是某些字体有信息声称它有一个字符的字符(所以浏览器停止搜索),但没有。
Browsers (including Chrome) sometimes have difficulties in rendering a character when it does not exist in the fonts specified for an element or, in the absence of such specifications, in the browser’s default font. Browsers should check all the fonts in the system to find out one that contains the character, but sometimes they fail to do that. Sometimes the reason is that some font has information that claims that it has a glyph for the character (so the browser stops searching) but hasn’t.
治愈是指定知道包含字符的字体列表。对于❯U + 276F重要的角点报价标记(一个相当特殊的字符),字体覆盖是非常有限的。大多数计算机没有包含它的字体。您可以指定以下字体列表:
The cure is to specify a list of fonts know to contain the character. For "❯" U+276F HEAVY RIGHT-POINTING ANGLE QUOTATION MARK ORNAMENT (a rather special character), font coverage is very limited. Most computers have no font containing it. You can specify a font list like the following:
font-family: DejaVu Sans, Symbola, Everson Mono, Dingbats, Segoe UI Symbol,
Quivira, SunExt-A, FreeSerif, Universalia, unifont;
但大多数用户缺少所有这些字体。您可以考虑使用带有@ font-face的可下载字体(网络字体)。 DejaVu字体,Symbola和Quivira是免费字体,尽管它们的文件大小相当大。
But most users lack all of these fonts. You might consider using a downloadable font (web font) with @font-face. DejaVu fonts, Symbola, and Quivira are free fonts, though they are rather large in file size.
或者,考虑使用图像。这个字符是一个装饰性的装饰,一个特殊的图形,而不是一个字符,虽然由于遗留的原因它已被编码为Unicode字符。
Alternatively, consider using an image. This character is an ornamental dingbat, a special graphic rather than a character, though for legacy reasons it has been encoded as a character in Unicode.
更多信息:。
这篇关于Chrome不显示特殊字符,而其他浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!