您的位置:首页 > 其它

FIREFOX不支持font-family: webdings;怎么办? "5","6"排序上下箭头问题

2012-02-10 17:00 441 查看
> Example: <http://www.williamsauction.com/ca_all.php> -- There should be
> up arrows and down arrows at the top of each column, but the Webdings
> font isn't being used in Firefox, which shows "5" and "6". I've tried
> specifying the font with an inline style in a span -- still doesn't work.

What Firefox/Win (and, incidently, Opera) is doing is correct. Your HTML
markup has the characters '5' and '6'. They don't exist in the Webdings
font, so the browser can't display them. It might be more correct to say
that Webdings can't display ISO-8859-1 characters.

Anyway, the correct solution is to put the correct characters into the
markup, namely ▲ and ▼. I got those from the Unicode character
charts <http://www.unicode.org/charts/>, specifically the "Geometric
Shapes". Note that the hexadecimal Unicode codes need to be converted to
decimal.

Webdings and similar fonts (eg Wingdings) really shouldn't be used at all.
Always use Unicode for this sort of thing.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐