infinity
狐狸大王
狐狸大王
  • UID48261
  • 注册日期2014-12-18
  • 最后登录2023-03-15
  • 发帖数352
  • 经验350枚
  • 威望0点
  • 贡献值96点
  • 好评度34点
  • 社区居民
  • 忠实会员
阅读:1400回复:2

样式在Firefox里有效,在Chrome/Edge里无效

楼主#
更多 发布于:2021-06-19 11:51
为什么我这个样式在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");
}
infinity
狐狸大王
狐狸大王
  • UID48261
  • 注册日期2014-12-18
  • 最后登录2023-03-15
  • 发帖数352
  • 经验350枚
  • 威望0点
  • 贡献值96点
  • 好评度34点
  • 社区居民
  • 忠实会员
1楼#
发布于:2021-06-24 00:23
破案了,经过我不懈努力终于发现,Chrome/Edge 上用
@font-face {
    font-family: "AAA";
    src: local("BBB");
}
的话,BBB 字体必须在 C:\Windows\Fonts 下才行
踏破铁鞋无觅处,得来全不费工夫!
齿轮key
火狐狸
火狐狸
  • UID57347
  • 注册日期2019-11-14
  • 最后登录2022-10-08
  • 发帖数252
  • 经验81枚
  • 威望0点
  • 贡献值52点
  • 好评度6点
  • 社区居民
  • 忠实会员
2楼#
发布于:2022-02-05 12:13
可喜可贺
跑跑原神火狐 & ACGN 的社区:popkart.org
游客

返回顶部