uks*_*ksz 5 css windows google-chrome
我在Windows Chrome上遇到字体渲染问题.我正在使用Google Lato字体,大小为10px,字体重量为300.以下是在Mac和Windows上呈现的比较:
Chrome Windows:
Chrome Mac:
如您所见,Windows上的字体很难阅读.我试过用:
-webkit-font-smoothing: antialiased;
Run Code Online (Sandbox Code Playgroud)
但它没有奏效.有想法该怎么解决这个吗?
这是一个例子:https://jsfiddle.net/Lcj9yxuo/
小智 0
您可以在样式中添加一些文本阴影
label{
font-family: Lato;
font-weight:300;
font-size:10px;
-webkit-font-smoothing: antialiased;
-webkit-text-shadow: rgba(0,0,0,.2) 0 0 1px;
text-shadow: rgba(0,0,0,.2) 0 0 1px;
}Run Code Online (Sandbox Code Playgroud)
<link href="https://fonts.googleapis.com/css?family=Lato:100,200,300,400,500,600,700,800,300italic,400italic,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
<label>
gwarancja niskich cen
</label>Run Code Online (Sandbox Code Playgroud)
有关更多详细信息和解释,请参阅来源:How to apply font anti-aliaseffects in CSS?