admin管理员组文章数量:1336613
Importing styles from an external library to index.html:
import 'outside-library/styles/main.css';
The main.css file contains custom fonts:
@font-face {
font-family: 'Noto Sans';
font-weight: 800;
src: url('../assets/NotoSans-ExtraBold.ttf');
}
Everything works fine, but ttf fonts have a large size. I want to redefine this font and upload it in woff/woff 2 format. I made a new css file in which I wrote:
@font-face {
font-family: 'Noto Sans';
font-weight: 800;
src: url('../assets/NotoSans-ExtraBold.woff');
}
but wherever I connect a new file: before or after main.css, the browser still loads the ttf font. Is there any way to redefine @font-face?
本文标签: How do I redefine the css property fontfaceStack Overflow
版权声明:本文标题:How do I redefine the css property @font-face? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742409244a2469450.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论