是否有任何标准,有一个网页安全的字体列表 [英] Is there any standard that has a list of web-safe fonts

查看:171
本文介绍了是否有任何标准,有一个网页安全的字体列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一个标准的Web安全字体列表?



我期望W3C有一个,但我找不到。我发现它只是一个术语而不是任何标准。对吗?

解决方案

没有任何网页安全的字体。

标准并不要求浏览器始终支持特定的字体。这一切都归结于特定操作系统中安装的内容。如果浏览器找到指定的字体,则需要它。

最聪明的选择是指定一个像这样的字体列表:



pre> font-family:Arial,Helvetica,Sans-Serif;

如果可以,请检查您的页面在不同操作系统中的外观。这是你能给的最好的表现。否则,开发你的网页是可靠的一些字体大小的变化,这总是最好的选择。


Is there any standard that has a list of web-safe fonts?

I expected W3C to have one, but I couldn't find. I found it more to be just a terminology instead of any standard. Am I right?

解决方案

There aren't really any "web-safe" fonts.

Standards do not require of browsers to always support specific fonts. It all comes down to what is installed in a specific OS. If a browser finds the specified font, it takes it. If not, it looks for a substitute.

The smartest option is to specify a list of fonts like this:

font-family: Arial, Helvetica, Sans-Serif;

If you are able to, check how your page looks with all of those in different OSes. That's the best performance you could give. Otherwise, develop your pages to be robust to some font size variations, that's always the best bet.

这篇关于是否有任何标准,有一个网页安全的字体列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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