html - 网站将不会在 Internet Explorer 7 和 8 中显示

标签 html css internet-explorer

我的第一个响应式网站经过验证,适用于所有浏览器,并且在装有 IE7 的机器上本地运行时显示良好,但在实时运行时无法在 IE 7 或 8 上运行。

网站的前两行在那里,但没有其他内容出现,我尝试使用 respond/s.js,但我假设它是我的链接的问题。

可以看到站点的重做版本[here]如果有人能提供帮助,我们将不胜感激。

<!DOCTYPE html>
<html lang="en">

<head>

<meta charset="UTF-8" />

<title>Urban Dreamscapes &#151; Web Design and Development for Fun</title>

<meta name="description" content= />
<meta name="keywords" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="stylesheet" href="css/style.css" type="text/css" media="screen, all" />

<!--[if lt IE 9]>
    <link rel="stylesheet" href="css/ie.css" type="text/css" media="screen, all" />
    <script src="scripts/css3-mediaqueries.min.js"></script>
    <script src="scripts/html5shiv.min.js"></script>
<![endif]-->

</head>

最佳答案

当它在 IE7/8 中加载 html5shiv js 库时,您的页面中断,在我的情况下,变得没有响应。

尝试在包含 html5shiv.js 之前添加所有你想要“shiv”的元素。

window.html5 = {
  'elements': abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video' 
};

从您呈现的标记中,我看到了 hgroup、页眉和页脚。最好包括所有内容,但只是为了确定

关于html - 网站将不会在 Internet Explorer 7 和 8 中显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27842031/

相关文章:

html - 相对 img src 被解析为绝对...我错过了什么?

html - 在移动设备上查看网站需要水平滚动

css - Wordpress 破坏了 CSS 悬停 slider

html - 一个页面上有多个 X-UA-Compatible 元标记

asp.net - IE7 和 8 在 CSS 图像上随机挂起

jquery - 更改滚动条上 Bootstrap 导航栏的颜色

javascript - Chrome/Firefox 中表格的鼠标悬停显示

html - 如何使使用TCPDF生成的pdf表格居中?

css - 为 WordPress 更改二十十二点的移动菜单?

css 媒体查询以针对除 IE 之外的所有浏览器