禁用字体连字CSS(字母组合)
作者:互联网
2026-04-08
就个人而言,我只在Chrome(版本53.0.2785.101)中遇到过这个问题,我虽然不能确定,但我相信这个问题在所有其他版本的Chrome中都存在.
铬f和i组合多次
边缘
IE11
在这种情况下,我一直在寻找一种方法来关闭它.
事实证明,这绝对是可能的,它只需要一些挖掘.如 MDN, you can turn off common ligatures所述:font-feature-settings: "liga" 0;
然而,这是通过使用不明显的css属性来完成的.相反,你应该使用font-variant-ligatures,如下所示:
font-variant-ligatures: none;
这两个属性完全相同,但后者推荐使用.
MDN:
Note: Whenever possible, Web authors should use the font-variant shorthand property or an associated longhand property, font-variant-ligatures, font-variant-caps, font-variant-east-asian, font-variant-alternates, font-variant-numeric or font-variant-position.
This property is a low-level feature designed to handle special cases where no other way to enable or access an OpenType font feature exists.
In particular, this CSS property shouldn’t be used to enable small caps.
相关推荐
专题
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
最新数据
相关文章
用 AI 解决数据库性能问题的方法论
前端害怕被蒸馏 快速入门Python 【demo_03】
Python 操作 Word 文档节与页面设置
Python后端开发准则
Python 面向对象编程
第2周 Day 4:英语 Agent Web 版上线:从命令行到浏览器
python从入门到精通-第8章: 类型系统 — Python的类型注解革命
基于 SelectDB 实现 Hive 数据湖统一分析:洋钱罐全球一体化探索分析平台升级实践
使用 Python 压缩 PDF 文件的大小
Envira Gallery v1.13.2 汉化版 WordPress高级图库插件
AI精选
