如何做出这种无锯齿字体效果?_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:36:35
Original
1406 people have browsed it

今天发现苹果官网的中文字体也很好看,字体是无锯齿的,这是怎么实现的呢
我复制源代码下来在本机测试却没有这种效果,还是有锯齿。
地址:http://www.apple.com/cn/iphone/


回复讨论(解决方案)

body, input, textarea, select, button {text-rendering: optimizeLegibility;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;-moz-font-feature-settings: 'liga', 'kern';}
Copy after login
Copy after login


让页面里的字体变清晰:-webkit-font-smoothing

兼容:


body, input, textarea, select, button {text-rendering: optimizeLegibility;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;-moz-font-feature-settings: 'liga', 'kern';}
Copy after login
Copy after login


让页面里的字体变清晰:-webkit-font-smoothing

兼容:



我测试了下,不是这个属性的原因吧
-webkit-font-smoothing 
这个属性只有在MacOS下才有效果,而我上面的例子在是win2003+Chrome45下看到的效果


搞定啦亲们

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template