【问题标题】:IE 8 and older not loading CSS [closed]IE 8 及更早版本不加载 CSS [关闭]
【发布时间】:2014-05-16 16:01:50
【问题描述】:

我用 HTML 5 开发了网站。它的 CSS 无法在 IE 旧浏览器 IE 6、7 和 8 中加载。

我的网站的第二个问题是它的字体不是在 Firefox HTTP 协议中加载,而是通过 HTTPS 加载。

我的 htaccess 是

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} (book_it.php|book-it.php|gccs.css)$
RewriteRule .? https: //%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} !(book_it.php|book-it.php|gccs.css)$
RewriteRule .? http: //%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

<FilesMatch "\.(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
BrowserMatch MSIE best-standards-support
Header set X-UA-Compatible IE=8 env=best-standards-support
</IfModule>
</FilesMatch>`

您还可以查看 CSS。

【问题讨论】:

    标签: php css .htaccess internet-explorer firefox


    【解决方案1】:
    <!--[if IE 8]>
    <link rel="stylesheet" type="text/css" href="stylesheet.css">
    <![endif]-->
    

    使用仅限 IE8 的样式表 - 这将允许您更改元素或告诉用户他们的浏览器不支持 html5

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-19
      • 2012-01-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多