Ger*_*rre 13 html css fonts stylesheet font-smoothing
我想要一些小字体看起来没有平滑.是否可以使用HTML/CSS禁用字体平滑?
Eug*_*nko 18
是的,这是可能的,但不适用于所有浏览器.
font-smooth: auto | never | always | <absolute-size> | length | initial | inherit
-webkit-font-smoothing : none | subpixel-antialiased | antialiased
Run Code Online (Sandbox Code Playgroud)
对于你的情况:
font-smooth: never;
-webkit-font-smoothing : none;
Run Code Online (Sandbox Code Playgroud)
UPD(适用于Chrome): 在Windows上强制使用Chrome平滑字体
是的,虽然我不能说哪些浏览器会注意到你!
你可以写
<p style="font-smooth:never;">
Run Code Online (Sandbox Code Playgroud)
以获得您想要的效果。
编辑
我确信我几个月前就用过这个,但我在 Mozilla Network 上读到
尽管出现在 CSS3 字体的早期(2002)草案中,但 font-smooth 已从该规范中删除,并且目前不在标准轨道上。
对不起!