CSS 是否支持文本抗锯齿,例如“清晰、锐利等”?然而?
我在 Photoshop 和 Photoshop 中有一些文字。它被设置为“脆”。当我把它放在我的网站上时,它看起来不太一样。
CSS 中是否存在可以让我变得清晰的东西?或不?
或者您有什么建议可以达到类似的效果吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
使用 CSS 强制消除锯齿:这是一个神话吗?
Forcing anti-aliasing using css: Is this a myth?
试试这个代码片段
Try This code snippet
这是我在一家大公司的网站上找到的:
this is what I found on a big company's web site:
您真正要问的是:
“是否可以从 Web 开发的角度控制抗锯齿?”
就目前而言,至少在未来一段时间内(直到操作系统/浏览器供应商开始提供这种开发控制[不要屏住呼吸]),答案无疑是:不。
What you're really asking is:
"Is it possible to control anti-aliasing from the web development perspective?"
The answer, for now, and for at least some time into the future (until OS/browser vendors start giving that kind of developmental control [don't hold your breath]) is undeniably: NO.
这不仅不可能,而且市场上不同的浏览器强制执行不同的抗锯齿设置,这意味着您无法获得一致的结果,即使它们不是您想要的。
有关各种浏览器如何处理字体渲染的好文章,我建议阅读以下内容: http://blog.typekit.com/2010/10/21/type-rendering-web-browsers/
Not only is it not possible, but different browsers on the market enforce different antialiasing settings, meaning that you can't get consistent results, even if they are not what you want.
For a good article on how the various browsers deal with font rendering, I'd suggest reading this: http://blog.typekit.com/2010/10/21/type-rendering-web-browsers/