Home  >  Article  >  Web Front-end  >  Detailed explanation of webkit-font-smoothing font anti-aliasing rendering use cases

Detailed explanation of webkit-font-smoothing font anti-aliasing rendering use cases

php中世界最好的语言
php中世界最好的语言Original
2018-05-25 11:55:561922browse

This time I will bring you a detailed explanation of the use case of webkit-font-smoothing font anti-aliasing rendering. What are the precautions when using webkit-font-smoothing font anti-aliasing rendering? The following is a practical case, let’s take a look.

Webkit supports this effect in its own engine

-webkit-font-smoothing It has three attributes values:

  • none: Better for low-pixel text

  • subpixel-antialiased: Default value

  • antialiased: Antialiasing is good

How to use

body{
   -webkit-font-smoothing: antialiased;
}

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to the php Chinese websiteOther related articles!

Recommended reading:

Summary of using JS methods in HTML

##Summary of page rendering optimization methods in the front end

The above is the detailed content of Detailed explanation of webkit-font-smoothing font anti-aliasing rendering use cases. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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