阻止加载混合活动内容“http://materializecss.com/fonts/roboto/Roboto-Bold.woff2”
当我尝试使用在materialize css上构建的网站时,我在firefox中看到了字体下载的混合内容警告。我担心的不是警告,而是要求在代码中下载的字体,即
我没有在我的HTML中包含的文件中看到任何包含指向Materialise网站链接的文件或引用。所以,只是好奇它如何通过该URL来下载它们。
编辑:这是来自materialize.css的片段
@font-face {
font-family: "Roboto";
src: local(Roboto Thin), url("../fonts/roboto/Roboto-Thin.woff2") format("woff2"), url("../fonts/roboto/Roboto-Thin.woff") format("woff");
font-weight: 100;
}
@font-face {
font-family: "Roboto";
src: local(Roboto Light), url("../fonts/roboto/Roboto-Light.woff2") format("woff2"), url("../fonts/roboto/Roboto-Light.woff") format("woff");
font-weight: 300;
}
@font-face {
font-family: "Roboto";
src: local(Roboto Regular), url("../fonts/roboto/Roboto-Regular.woff2") format("woff2"), url("../fonts/roboto/Roboto-Regular.woff") format("woff");
font-weight: 400;
}
@font-face {
font-family: "Roboto";
src: local(Roboto Medium), url("../fonts/roboto/Roboto-Medium.woff2") format("woff2"), url("../fonts/roboto/Roboto-Medium.woff") format("woff");
font-weight: 500;
}
@font-face {
font-family: "Roboto";
src: local(Roboto Bold), url("../fonts/roboto/Roboto-Bold.woff2") format("woff2"), url("../fonts/roboto/Roboto-Bold.woff") format("woff");
font-weight: 700;
}
答案 0 :(得分:1)
请求从CSS发送。在CSS中搜索“@ font-face”。