English 中文(简体)
用户能否安全地看到统一编码特性U+2716和U+2714在CSS的内容中?
原标题:Is it safe to assume users can see unicode characters U+2716 and U+2714 in CSS content?

我不想在我的安保部中使用✖(U+2716)和✔(U+2714)的特性,以形成验证。 基本上,如果一个领域是有效的/无效的,则我使用假冒的类别,在实地之后插入相应的编号。

例如:

.field:after {
  content: "2716";
}

This is working great on my Mac, but when I switch to my Windows XP VMWare instance, I don t get the characters, no matter what font I choose (even Arial).

我的怀疑是,也许我的Windows RV是经过适当配置的,但导致我完全使用这些特性。

Does anyone know if there are "safe" characters or ranges in unicode that you can reliably assume will be viewable by most people?

UDPATE:

Here is a list of unicode characters I was hoping to possibly be able to use as icons. Specifically the dingbats section. http://en.wikipedia.org/wiki/List_of_Unicode_characters#Dingbats

如果你在你的机器上看不到这些特性,我肯定会在评论中知道。

最佳回答
问题回答

贵邮局使用什么样的浏览器? IE6和7不支持: 选任人,因此可能是问题。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签