HTML实体和字符集在IE

HTML实体和字符集在IE

本文介绍了HTML实体和字符集在IE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用iso-8859-1作为字符集的html文档中显示html实体✓ (复选标记:✓)。 / p>

在Firefox中,它显示为复选标记。在IE中,它显示为方框。切换到UTF-8似乎没有什么区别。



有没有可靠的方法来显示这些实体在IE 6& 7不使用图片?

解决方案

Square表示所使用的字体没有该字符的字形。

$不幸的是,没有很多字体包含该字符,并且它们在默认情况下在所有Windows计算机上都不存在(甚至不在非Windows计算机上)



最可能出现的字体(包含该字形)是Arial Unicode MS(自带Officie)和MS Gothic +系列(这是一种日语字体)。



查看这里可以帮助您确定字体包含什么字形的工具:



但如果您想要解决方案,工作可靠,图像是你最安全的打赌。


I am displaying html entity ✓ (a check mark: ✓) in an html document that uses iso-8859-1 for the character set.

In Firefox, it displays as a check mark. In IE, it displays as a square box. Switching to UTF-8 doesn't seem to make a difference.

Is there a reliable way to display these entities in IE 6 & 7 without using images?

解决方案

Square means that the font used does not have the glyph for that character.

Unfortunately, there are not many fonts containing that character, and none of them is present by default on all Windows machines (and even less on non-Windows ones)

The most likely fonts to be present (that contain that glyph) are Arial Unicode MS (comes with Officie), and MS Gothic + family (which is a Japanese font).

See here for a tool that can help you determine that font contains what glyphs: http://www.mihai-nita.net/article.php?artID=charmapex

But if you want a solution that works reliably, an image is your safest bet.

这篇关于HTML实体和字符集在IE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-26 13:10