阅读:1621回复:2
样式在Firefox里有效,在Chrome/Edge里无效
为什么我这个样式在Firefox里有效,在Chrome/Edge里无效呢?
用的扩展都是Stylus /* unicode-range: U+4E00-9FCB; 汉字字符集 unicode-range: U+26; single codepoint unicode-range: U+00-7F; ASC II unicode-range: U+0-7F; Latin, Latin1 Sup., Ext-A, Ext-B unicode-range: U+0025-00FF; codepoint range unicode-range: U+4??; wildcard range unicode-range: U+0025-00FF, U+4??; multiple values unicode-range: U+3100-312F 注音符号(台湾?) unicode-range: U+3040-30FF; 日文假名 */ font[face*="宋"], font[face*="sun"], font[face="新細明體"], font[face="細明體"], *[style*="font-family: 新細明體"], *[style*="font-family: 細明體"], *[style*="font-family:新細明體"], *[style*="font-family:細明體"] { font-family: "Noto Serif SC" !important; } /* serif */ @font-face { font-family: "等线"; src: local("Noto Serif SC"); } @font-face { font-family: "Times New Roman"; src: local("Noto Serif SC"); } @font-face { font-family: "宋体"; src: local("Noto Serif SC"); } @font-face { font-family: "SimSun"; src: local("Noto Serif SC"); } @font-face { font-family: "NSimSun"; src: local("Noto Serif SC"); } @font-face { font-family: "新宋体"; src: local("Noto Serif SC"); } @font-face { font-family: "仿宋"; src: local("Noto Serif SC"); } @font-face { font-family: "华文仿宋"; src: local("Noto Serif SC"); } @font-face { font-family: "ming"; src: local("Noto Serif SC"); } @font-face { font-family: "MingLiU"; src: local("Noto Serif SC"); } @font-face { font-family: "MingLiU_HKSCS"; src: local("Noto Serif SC"); } @font-face { font-family: "PMingLiu"; src: local("Noto Serif SC"); } @font-face { font-family: "細明體"; src: local("Noto Serif SC"); } @font-face { font-family: "新細明體"; src: local("Noto Serif SC"); } /* Sans-Serif */ @font-face { font-family: "MS Gothic"; src: local("Noto Sans SC Regular"); } @font-face { font-family: "STXihei"; src: local("Noto Sans SC Regular"); } @font-face { font-family: "SimHei"; src: local("Noto Sans SC Regular"); } @font-face { font-family: "黑体"; src: local("Noto Sans SC Regular"); } @font-face { font-family: "Microsoft YaHei"; src: local("Noto Sans SC Regular"); } @font-face { font-family: "Microsoft YaHei UI"; src: local("Noto Sans SC Regular"); } @font-face { font-family: "微软雅黑"; src: local("Noto Sans SC Regular"); } @font-face { font-family: "微软雅黑UI"; src: local("Noto Sans SC Regular"); } @font-face { font-family: "Segoe UI"; src: local("Noto Sans SC Regular"); } @font-face { font-family: "Calibri"; src: local("Noto Sans SC Regular"); } @font-face { font-family: "SF Pro SC"; src: local("Noto Sans SC Regular"); } @font-face { font-family: "SF Pro Text"; src: local("Noto Sans SC Regular"); } @font-face { font-family: "Microsoft JhengHei"; src: local("Noto Sans SC Regular"); } @font-face { font-family: "Microsoft JhengHei UI"; src: local("Noto Sans SC Regular"); } @font-face { font-family: "微軟正黑體"; src: local("Noto Sans SC Regular"); } @font-face { font-family: "MS PGothic"; src: local("Noto Sans SC Regular"); } |
|
1楼#
发布于:2021-06-24 00:23
破案了,经过我不懈努力终于发现,Chrome/Edge 上用
@font-face { font-family: "AAA"; src: local("BBB"); }的话,BBB 字体必须在 C:\Windows\Fonts 下才行 踏破铁鞋无觅处,得来全不费工夫! |
|
2楼#
发布于:2022-02-05 12:13
可喜可贺
![]() |
|
|