使用css代码更改wordpress网站全局字体 论坛首页 › 论坛 › 寻求帮助 › 使用css代码更改wordpress网站全局字体 标签: wordpress字体更改 该话题包含 2个回复,3 人参与,最后由Yulinn 更新于 1年、 3月前 。 正在查看 2 条回复 作者 帖子 2022年2月27日 下午10:47 #22501 Daimon参与者 @2247481637 楼主 咸鱼 用如下代码在wp后台自定义css,但是网站字体没有效果怎么解决? @font-face {font-family: ‘AWan’;src: url (‘https://cdn.jsdelivr.net/gh/huiyio/Lib/fonts/AWan/Awan.eot’);src:url(‘https://cdn.jsdelivr.net/gh/huiyio/Lib/fonts/AWan/AWan.eot’) format(’embedded-opentype’),url(‘https://cdn.jsdelivr.net/gh/huiyio/Lib/fonts/AWan/AWan.woff2’) format(‘woff2’),url(‘https://cdn.jsdelivr.net/gh/huiyio/Lib/fonts/AWan/AWan.woff’) format(‘woff’),url(‘https://cdn.jsdelivr.net/gh/huiyio/Lib/fonts/AWan/AWan.ttf’) format(‘truetype’),url(‘https://cdn.jsdelivr.net/gh/huiyio/Lib/fonts/AWan/AWan.svg’) format(‘svg’);font-weight: normal;font-style: normal;font-display: swap;}*:not ([class*=”icon”]):not (i) {font-family: “AWan” !important;} 2022年2月27日 下午10:54 #22502 白参与者 @shiro 我的博客 justmyblog.net 仓库容量达上限了,没法用jsdelivr获取,你用开发者工具看一下加载字体的链接正不正常就知道了 2022年2月27日 下午10:57 #22503 Yulinn管理员 @linn 我的博客 yuque.com/linn F12看下 CDN 链接成功没 JSdelivr 经常被墙 作者 帖子 正在查看 2 条回复 哎呀,回复话题必需登录。 登录 用户名: 密码: 保持登录状态 登录