Internet Explorer 8的兼容性问题 [英] Compatibility issues with Internet Explorer 8

查看:127
本文介绍了Internet Explorer 8的兼容性问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用此网站www.airmaster.dk遇到问题。在IE 8中,java脚本没有像它想象的那样正确渲染,我无法弄清楚它为什么会发生。

I am facing a problem with this site www.airmaster.dk. In IE 8 the java script is not rendering correctly as it suppose to and I cant figure out why it is happening.

它渲染的元素是这样的:

It's rendering the elements something like this:

<DIV class=nav-bar jQuery1830605484465614684="10"><A class=opener-subnav href="javascript:void(0);" jQuery1830605484465614684="8">Genveje</A>

因为它假设这样呈现:

<div class="nav-bar">
                    <a href="javascript:void(0);" class="opener-subnav">Genveje</a>

chrome,firefox,IE9及以上

chrome, firefox, IE9 and above

IE 8及以下

IE 8 and below

IE 8双页眉和页脚关闭标签< br>

IE 8 double header and footer close tags

Jquery
http://www.speedyshare.com/pHwuX/ jquery.main-1.js

提前致谢。

推荐答案

这是因为HTML5 tages如 header footer 在IE8或更低版本上不支持。

This is because HTML5 tages like header and footer does not support on IE8 or below.

您应该使用第三方库,例如 html5shiv 正确呈现HTML5标记。

You should use 3rdparty library such as html5shiv to render HTML5 tags correctly.

这篇关于Internet Explorer 8的兼容性问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆