通过浏览器支持Unicode [英] Support for Unicode By browser

查看:219
本文介绍了通过浏览器支持Unicode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带按钮的CSS按钮,但没有图像。这些图标是使用unicode值生成的。
在这里,我遇到了一些浏览器不支持某些unicode值的问题。所以不是正确的图标,而是显示一些不需要的符号。
在任何浏览器中为Unicode提供支持我们必须遵循哪些步骤?

解决方案

这主要是一个字体问题,但是如果CSS中列出的字体不包含某些字符,那么不同的浏览器将会使用不同的回退字体。治愈的方法是尝试找到可能涵盖您使用的所有字符的字体列表。这样做的难度很大程度上取决于您使用的字符。在按钮中使用最近引入的字符是毫无意义的,因为图像工作更可靠。在正确的文本中使用字符是一个不同的问题。有关详细信息,请参阅我的 HTML中使用特殊字符的指南。 p>

I am using the CSS Buttons With Icons But No Images.The icons are generated using unicode values.
In this I faced a problem that some browsers doesn't support some unicode values. So instead of proper icon it shows some unwanted symbol.

To provide support for Unicode in any browser what steps do we have to follow?

解决方案

This is primarily a font problem, but if the fonts listed in your CSS do not cover some character, then different browsers will use fallback fonts differently. The cure is to try and find a list of fonts that probably covers all the characters you use. The difficulty of doing this greatly depends on the characters you use. Using recently introduced characters in buttons is mostly pointless, because images work more reliably. Using characters in text proper is a different issue. See my Guide to using special characters in HTML for details.

这篇关于通过浏览器支持Unicode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆