标签: php css .htaccess
enter image description here
答案 0 :(得分:0)
之所以会这样,是因为CSS通过HTTPS协议加载,并且您使用HTTP协议访问网站,
HTTPS
HTTP
您可以通过在HTTPS上强制用户使用.htaccess来解决此问题:
.htaccess
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]