字体和字体很棒的图标没有加载SSL [英] Fonts and Font Awesome icons not loading over SSL

查看:77
本文介绍了字体和字体很棒的图标没有加载SSL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过SSL正确加载我的网站,每次查看页面时,图标和字体都没有加载。

I'm trying to get my website to load correctly over SSL, and every time I view the page, the icons and font aren't loading.

这里是我正在使用的CSS和字体真棒。

Here's what I'm using for my CSS and font awesome.

<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.min.css" rel="stylesheet">
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600' rel='stylesheet' type='text/css'>

这是一个如果您想查看完整代码,请链接到该网站

推荐答案

尝试从<$ c删除http: $ c> href :

<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">

这里有一篇很棒的关于协议相关的文章: paulirish.com/2010/the-protocol-relative-url/

There is a great article about protocol-relative here: paulirish.com/2010/the-protocol-relative-url/

这篇关于字体和字体很棒的图标没有加载SSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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