我的第一个响应式网站经过验证,适用于所有浏览器,并且在装有 IE7 的机器上本地运行时显示良好,但在实时运行时无法在 IE 7 或 8 上运行。
网站的前两行在那里,但没有其他内容出现,我尝试使用 respond/s.js,但我假设它是我的链接的问题。
可以看到站点的重做版本[here]如果有人能提供帮助,我们将不胜感激。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Urban Dreamscapes — 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/