3

There are a number of asterisk (*) types as you can see here:

http://www.eki.ee/letter/chardata.cgi?search=asterisk

Even now, we can see that some of these characters like the one with the code: "204E" also known as "low asterisk" is not rendered in HTML (at least while using Chrome anyway).

You can see the character here:

⁎ -> ⁎

Other similar types work however:

✢ -> ✢

✣ -> ✣

✤ -> ✤

Of course out of all the possible types, the authors of my input data have chosen ⁎ to work with.

It makes me think it should be somewhat general, because I saw solutions where a tiny image was used instead of this character in the entire HTML document. Needless to say I do not like that approach even a bit.

Is there a way to make this work in HTML? Is this possibly a browser specific issue?

UPDATE:

Internet Explorer 9 and Google Chrome also fail to render this special character.

Firefox and Chromium (Ubuntu) seem to be able to render it.

Please note, that I would like to find a general solution if possible.

4

3 回答 3

3

我的 HTML 代码:

<html>
    it works in chromium though &#x0204e;
    </html>

我在 Ubuntu 中使用 Chromium,它在其中运行良好。我的屏幕截图

这里是 IE 的屏幕截图,如果你想看的话。 IE 屏幕截图

于 2013-09-03T09:21:31.473 回答
2

此外:对于那些寻找中间星号的人&#8727;-> *

于 2013-12-30T12:40:58.277 回答
1

这主要取决于安装在用户系统中的字体,而不是浏览器(尽管某些浏览器,尤其是 IE,可能无法使用系统中的所有字体,因为它们应该如此)。例如 U+204E,字体支持相对有限:Windows 附带的字体没有包含它,而 Linux 系统可能有一些字体包含它。

使用@font-face一些合适的免费字体,您可以在大多数计算机上显示字符(基本上不包括那些禁用字体加载的计算机)。请参阅我在 HTML 中使用特殊字符的指南

在这种情况下,如果您只需要一个低星号,这可能会有点过分。一个正常的星号,在较低的位置,应该就足够了——至少与 HTML 文档的整体印刷质量相比。例子:

<style>
.low { 
  position: relative;
  top: 0.55ex;
}
</style>
Compare: *&#x204e;<span class=low>*</span>

(使用相对定位比vertical-align直接使用或通过sub元素使用更安全,因为vertical-align通常会弄乱行距。)

于 2013-09-03T10:34:13.547 回答