bootstrap 未读入 cpanel 中的样式 sheet
bootstrap style sheet in cpanel not read in
我对某些图标使用以下 css:
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css">
它在我的本地驱动器上有效,但当我将 html 文件上传到 cpanel 时无效。
根据您写的评论,您面临来自浏览器的混合内容警告,当资源来自不安全的服务器时,浏览器会阻止这些资源。
更改 CDN link 以使用 https
,正如我在评论中提到的,是解决问题的一种方法。
更多阅读
https://developer.mozilla.org/en-US/docs/Web/Security/Mixed_content
我对某些图标使用以下 css:
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css">
它在我的本地驱动器上有效,但当我将 html 文件上传到 cpanel 时无效。
根据您写的评论,您面临来自浏览器的混合内容警告,当资源来自不安全的服务器时,浏览器会阻止这些资源。
更改 CDN link 以使用 https
,正如我在评论中提到的,是解决问题的一种方法。
更多阅读 https://developer.mozilla.org/en-US/docs/Web/Security/Mixed_content