取消如何格式化
►将回车放在段落之间
用于换行的►添加2个空格
还允许使用►basic超文本标记语言
格式化帮助»询问帮助»
发布于 2018-12-28 05:07:20
尝试完全省略http:和https:前缀。例如,你有这样的代码:
function Wo_Ajax_Requests_File(){
return "http://social.searchika.com/requests.php"
}和CSS,如:
@font-face {
font-family: OpenSansLight;
src: url("http://social.searchika.com/themes/wowonder/fonts/OpenSansLight/OpenSansLight.woff") format("woff");
font-weight: normal;
}将其更改为:
function Wo_Ajax_Requests_File(){
return "//social.searchika.com/requests.php"
}
@font-face {
font-family: OpenSansLight;
src: url("//social.searchika.com/themes/wowonder/fonts/OpenSansLight/OpenSansLight.woff") format("woff");
font-weight: normal;
}如果省略协议,它会自动使用与页面本身相同的协议。
或者,您可以简单地重写所有内容以使用https:。只有当您尝试从HTTPS页面加载HTTP内容时,才会出现“混合内容”错误。走另一条路是没有问题的。
在你的PHP中,不需要检查$_SERVER['HTTPS']。只需将https:网址放在配置文件中,并始终重定向到该网址。
https://stackoverflow.com/questions/53949024
复制相似问题