是否可以在 CSS 中禁用字体平滑? [英] Is it possible to disable font smoothing in CSS?
本文介绍了是否可以在 CSS 中禁用字体平滑?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望一些小字体看起来没有平滑.是否可以使用 HTML/CSS 禁用字体平滑?
I want some small fonts to look with no smoothing. Is it possible to disable font smoothing using HTML/CSS?
推荐答案
是的,这是可能的,但并非适用于所有浏览器.
Yes, it's possible, but not for all browsers.
font-smooth: auto | never | always | <absolute-size> | length | initial | inherit
-webkit-font-smoothing : none | subpixel-antialiased | antialiased
对于您的情况:
font-smooth: never;
-webkit-font-smoothing : none;
UPD(适用于 Chrome):在 Windows 上的 Chrome 中强制字体平滑
这篇关于是否可以在 CSS 中禁用字体平滑?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文