老师,无法修改字体
来源:4-10 字体设置弹窗功能实现

肖慕粉
2019-04-09
Failed to decode downloaded font: http://localhost:8081/fonts/daysOne.woff2
localhost/:1 Failed to decode downloaded font: http://localhost:8081/fonts/cabin.woff2
localhost/:1 Failed to decode downloaded font: http://localhost:8081/fonts/tangerine.woff2
@font-face {
font-family: 'Days One';
font-style: normal;
font-weight: 400;
src: url('daysOne.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
写回答
4回答
-
肖慕粉
提问者
2019-04-09
Promise.all 可以正常打印,应该载入是成功了?可是点击字体没效果
00 -
肖慕粉
提问者
2019-04-09
Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost:8080/OEBPS/undefined/fonts/daysOne.css".
00 -
肖慕粉
提问者
2019-04-09
把 daysOne.css 的src改为 ./daysOne.woff2,也没用
00 -
肖慕粉
提问者
2019-04-09
会不会是chrome的一些权限问题?
052019-04-09
相似问题