Computer >> Máy Tính >  >> Lập trình >> Javascript

Làm thế nào để hiển thị các phông chữ mỏng mượt mà hơn trong CSS3 với HTML?

Để hiển thị phông chữ mỏng mượt mà hơn, hãy sử dụng -

text-rendering: optimizeLegibility !important;
-webkit-font-smoothing: antialiased !important;
-moz-osx-font-smoothing: grayscale !important;

Đối với Google Chrome, hãy sử dụng -

-webkit-font-smoothing:antialiased !important;

Bạn có thể nâng cao hiệu suất như thế này -

text-rendering: auto
text-rendering: optimizeSpeed
text-rendering: optimizeLegibility
text-rendering: geometricPrecision
text-rendering: inherit