简体   繁体   English

为什么我的标准网站会破坏IE?

[英]Why does my very standard website break IE?

I am creating a website and it doesn't work in some IE's, it actually crashes. 我正在创建一个网站,但在某些IE中无法正常工作,实际上它崩溃了。 The problem is that it works fine on my computer. 问题是它在我的计算机上工作正常。

My htmlcode is W3C compliant, so at least it's no rookie mistake, but unfortunately my knowledge of the deeper workings is very limited. 我的htmlcode是W3C兼容的,因此至少这不是菜鸟的错误,但是不幸的是,我对更深层次的工作的了解非常有限。

Here's a list of the JS-libraries I use: 这是我使用的JS库的列表:

    <script type="text/javascript" src="jquery-1.4.4.min.js"></script> 
    <script type="text/javascript" src="jquery.easing.1.3.js"></script> 
    <script type="text/javascript" src="jquery.coda-slider-2.0.js"></script> 
    <script type="text/javascript" src="http://s7.addthis.com/[omitted for security]"></script>

Works perfectly in Chrome, FF and IE for me, but not on other computers (including my clients', which is frustrating). 对我来说,它在Chrome,FF和IE上可以完美运行,但在其他计算机(包括我的客户的计算机)上却无法令人满意。

Here's a link: http://www.demensentuin.be/indexgeheim.php 这是链接: http : //www.demensentuin.be/indexgeheim.php

The reason for the problem is the one instance where IE is more standards compliant than the other browsers :) 出现此问题的原因是一个实例,即IE比其他浏览器更符合标准:)

This block 这个街区

$('#header').delay(250).animate({
 'padding-top': headertop,
 'margin-left': headerleft, 
},250);                   ^-------------------- HERE

has an extra comma at the end of the property list which is invalid syntax, but gets swallowed by FF, Chrome and the like. 在属性列表的末尾有一个逗号,这是无效的语法,但是却被FF,Chrome等吞噬。

IE8 seems to have relaxed its parsing behaviour for this. IE8似乎已经为此放松了解析行为。 It's only 6 and 7 that complain. 抱怨的只有6和7。

(There may be other problems that come to light after this is fixed, but this is where IE currently stops parsing.) (解决此问题后可能还会发现其他问题,但这是IE当前停止解析的地方。)

Helpful resources: 有用的资源:

On IE6, I get the error popup: 在IE6上,出现错误弹出窗口:

Line: 94
Char: 7
Error: Expected identifier, string, or number
Code: 0
URL: http://www.demensentuin.be/indexgeheim.php

But then the site loads. 但是,然后站点加载。 Does this help at all? 这有帮助吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM