勾选HTML / XHTML中的符号 [英] Tick symbol in HTML/XHTML
问题描述
我们需要在内部显示勾号符号(✓或✔) web应用程序,并希望避免使用图像。
必须在XP盒子上使用IE 6.0.2900,理想情况下我们需要它是跨浏览器的IE +最新版本的FF)。
下面的显示框尽管将浏览器编码设置为UTF-8(META很好地工作,而不是问题)。默认字体是Times New Roman(可能是一个问题,但尝试Lucida Sans Unicode并没有帮助,我也没有安装Arial Unicode MS,也没有安装Lucida Grande)。
< html>
< head>
< meta http-equiv =Content-Typecontent =text / html; charset = utf-8/>
< / head>
< body>
&#10003; &安培;#10004;
< / body>
< / html>
任何帮助表示感谢。
以下是IE 6.0和IE 7下的工作:
< html>
< head>
< / head>
< body>
< span style =font-family:wingdings; font-size:200%;>&#252;< / span>
< / body>
< / html>
如果有人可以在Windows下检查FF,我将不胜感激。我非常确定它不能在非Windows的机器上工作。
我认为你使用的不是很好,支持的Unicode值,它并不总是具有所有代码点的字形。请尝试以下字符:
- ☐(十六进制Unicode中的 0x2610 [HTML十进制:
&#9744;
]):一个空的(未选中的)复选框 - ☑( 0x2611 [HTML十进制:
&#9745;
]):前一个复选框的选中版本 - ✓( 0x2713 [HTML十进制:
&#10003;
]) - ✔( 0x2714 [HTML decimal:
&#10004;
])
编辑:这里的第一个符号似乎有些混淆,☐/ 0x2610。这是一个空的(未选中的)复选框,所以如果你看到一个盒子,那就是它应该看起来的样子。这是☑/ 0x2611的对应部分,这是检查的版本。
We need to display a tick symbol (✓ or ✔) within an internal web app and would ideally like to avoid using an image.
Has to work starting with IE 6.0.2900 on a XP box, ideally we need it be cross-browser (IE + recent versions of FF).
The following displays boxes although sets browser encoding to UTF-8 (META works nicely and not the issue). The default font is Times New Roman (might be an issue, but trying Lucida Sans Unicode doesn't help and I don't have neither Arial Unicode MS, nor Lucida Grande installed).
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
</head>
<body>
✓ ✔
</body>
</html>
Any help appreciated.
The following works under IE 6.0 and IE 7:
<html>
<head>
</head>
<body>
<span style="font-family: wingdings; font-size: 200%;">ü</span>
</body>
</html>
I would appreciate if someone could check under FF on Windows. I am pretty sure it won't work on a non Windows box.
I think you're using less-well-supported Unicode values, which don't always have glyphs for all the code points.
Try the following characters:
- ☐ (0x2610 in Unicode hexadecimal [HTML decimal:
☐
]): an empty (unchecked) checkbox - ☑ (0x2611 [HTML decimal:
☑
]): the checked version of the previous checkbox - ✓ (0x2713 [HTML decimal:
✓
]) - ✔ (0x2714 [HTML decimal:
✔
])
Edit: There seems to be some confusion about the first symbol here, ☐ / 0x2610. This is an empty (unchecked) checkbox, so if you see a box, that's the way it's supposed to look. It's the counterpart to ☑ / 0x2611, which is the checked version.
这篇关于勾选HTML / XHTML中的符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!