当站点是服务器而不是https时,字体看起来不同 [英] Font looks different when site is server over https

查看:262
本文介绍了当站点是服务器而不是https时,字体看起来不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我遇到了问题

当使用https查看网站时,所有内容都变为粗体

when website is viewed with https everything is made bold

https://www.healthinsurance.uk.net/

当它用粗体查看时已经消失了吗?

when its viewed with out the bold has gone?

我以前从未见过这个

推荐答案

一切都不是大胆的,但你得到的是备用字体( sans-serif )而不是你想要的那个。

Everything isn't made bold but you get your backup font (sans-serif) instead of the one you wanted.

这是因为您尝试从Google Webfonts加载的字体硬编码为 style.css中的常规http

This happens because the font you are trying to load from Google Webfonts is hardcoded to regular http in your style.css.

@import url(http://fonts.googleapis.com/css?family=News+Cycle:400,700);

将该行更改为以下内容,并根据当前加载的页面选择http或https。 / p>

Change that line to the following and it should choose http or https based on the currently loaded page.

@import url(//fonts.googleapis.com/css?family=News+Cycle:400,700);

这篇关于当站点是服务器而不是https时,字体看起来不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆