Font looks different when site is server over https [closed]

邮差的信 提交于 2019-12-13 04:53:43

问题


Hi there I'm running into a problem

when website is viewed with https everything is made bold

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

when its viewed with out the bold has gone?

I've never seen this before


回答1:


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

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);

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://stackoverflow.com/questions/20287870/font-looks-different-when-site-is-server-over-https

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!