gpt4 book ai didi

webpack - 为什么 Autoprefixer 不为字体平滑添加前缀

转载 作者:行者123 更新时间:2023-12-04 15:08:08 26 4
gpt4 key购买 nike

Autoprefixer webpack 加载器为所有 css 添加自动前缀,但它没有为 font-smoothing : antialiased 添加自动前缀.

为什么它没有为此添加自动前缀?

最佳答案

我猜是因为它是供应商(-webkit-)特定的属性。所以这个属性没有其他前缀。你也可以在 twitter 上看到一些讨论:https://twitter.com/autoprefixer/status/444429500789841921?lang=nl

找到了另一个解释用法的网站:
https://davidwalsh.name/font-smoothing

特尔;博士:

对于其他供应商,您甚至需要其他设置(抗锯齿和灰度)

.element {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

关于webpack - 为什么 Autoprefixer 不为字体平滑添加前缀,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41996124/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com