Google字体大小10.5 px(.5)的正确方式和多浏览器支持 [英] Google Font size 10.5 px (.5) the correct way and multibrowser support

查看:347
本文介绍了Google字体大小10.5 px(.5)的正确方式和多浏览器支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Google字体Open Sans,如果我将字体设置为font-size 11px,它对我需要的文本看起来很大,如果我设置为10px它看起来很小,所以我测试只是为了乐趣,并将其设置为10.5

I am using Google font Open Sans and if I set the font to font-size 11px it looks big for the text I need and if I set it to 10px it looks small so I tested just for fun and set it to 10.5px and it works on Chrome tested 10,5px with , and it does not work.

这是正确的,我们可以设置字体大小的值为例:

Is this correct that we can set values of font size to example:

10.1px或10.2px或10.3px或10.5px?或者是不正确的或新的css或beta的东西?

10.1px or 10.2px or 10.3px or 10.5px ? or is that incorrect or new css or beta something?

我真的希望它像10.5px工作,因为正是我需要的字体大小,但阅读和阅读I

I really would like it to work like 10.5px because is exactly the font-size I need but reading and reading I find nothing about it.

如果这项工作是所有浏览器和手机都支持的?

If this works is it supported by all browsers and cellphones ?

推荐答案

基本上,答案是,不,它不是一个好的方法,如果你想确保你的字体精确地呈现在跨浏览器时尚。在渲染字体时没有半像素这样的东西,所以你会对不同的浏览器应用的舍入效果打开,这些效果可能会因浏览器和浏览器以及客户端设备(具有不同的分辨率和像素密度)而有所不同。

Basically, the answer is that no, it is not a good approach if you want to make sure that your font renders precisely in a cross-browser fashion. There is no such thing as a half-pixel when it comes to rendering the font, so you leave yourself open to different browser-applied rounding effects which could differ from browser to browser and between client devices, which have different resolutions and pixel densities.

这篇关于Google字体大小10.5 px(.5)的正确方式和多浏览器支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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