gpt4 book ai didi

html - Google 字体在我的 DNN 网站上停止工作

转载 作者:行者123 更新时间:2023-11-28 06:51:03 24 4
gpt4 key购买 nike

上周晚些时候,我最近发现我的谷歌字体在我的 DNN 网站上停止工作。我还没有找到修复方法。

我安装了我的谷歌字体,所以我没有注意到它们突然停止正常显示。

在做了一些测试后,我发现如果我将所有 l 类放在 css 文件的底部,我能够让它看起来没问题,但我无法修复一些问题。就像我们职业部分的二级导航。

这是网站http://chartwell.com/index

显然,我想弄清楚如何以一种不太黑的方式解决这个问题。

这是我最初的称呼;

<%@ Register TagPrefix="dnn" TagName="STYLES" Src="~/Admin/Skins/Styles.ascx" %>
<dnn:STYLES runat="server" ID="GoogFonts" Name="GoogFonts" StyleSheet="http://fonts.googleapis.com/css?family=Montserrat:400,700|Merriweather+Sans:400,700,300" UseSkinPath="false" />

h1 { color:#0072bc !important; line-height:90%; letter-spacing:.5px; margin-bottom:5px !important; margin-top:-5px !important; font-size:28px !important; font-family: 'Montserrat-Bold', Helvetica, Arial, sans-serif; }

这就是我现在如何进行重置以使其正常工作;

h1, .TitleH2 {  font-family: 'Montserrat', Helvetica, Arial, sans-serif; font-weight: 400;  }

您好,我一直在测试字体加载器。如果我想继续使用顶部的简单示例,它似乎可以解决问题。

我注意到底部有这个脚本,用于调用具有不同粗细的字体;

<script>
WebFontConfig = {
google: {
bfamilies: ['Montserrat:400,700']
}
};
</script>

我尝试过对不同位置的元素进行许多不同的编辑,但我又被难住了。

知道这个系统的人对我有什么见解吗?

最佳答案

我想通了。在我删除字体堆栈中的 Montserrat 之后的粗体之后。

感谢您的宝贵时间。

关于html - Google 字体在我的 DNN 网站上停止工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33764626/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com