首页 > 解决方案 > @font-face 第一次没有加载,点击任何链接字体后为什么会改变?

问题描述

这就是我嵌入字体的方式:

@font-face {
font-family: 'fc_lamoonregular';
src: url('../font/fc_lamoon_regular_ver_1.00-webfont.eot');
src: url('../font/fc_lamoon_regular_ver_1.00-webfont.eot?#iefix') format('embedded-opentype'),
url('../font/fc_lamoon_regular_ver_1.00-webfont.woff2') format('woff2'),
url('../font/fc_lamoon_regular_ver_1.00-webfont.woff') format('woff'),
url('../font/fc_lamoon_regular_ver_1.00-webfont.ttf') format('truetype'),
url('../font/fc_lamoon_regular_ver_1.00-webfont.svg#fc_lamoonregular') format('svg');
font-weight: normal;
font-style: normal;

}

我第一次导航到http://www.muangkaen.go.th/index.php时,无论我点击什么链接,字体总是正常的。有人会告诉我为什么并帮助我理解问题吗?

Google Chrome 检查中的此错误请帮助我。 在此处输入图像描述 在此处输入图像描述

谢谢。

标签: phphtmlcsscodeigniter

解决方案


推荐阅读