为什么这个网站会冻结在IE 7中,而不是在任何其他浏览器中?

时间:2021-03-15 08:40:15

I built a Parts Catalog for a company recently. It works perfectly in Firefox, Chrome, Safari, etc.

我最近为一家公司制作了零件目录。它在Firefox,Chrome,Safari等中运行良好。

However, in IE 7, every single page works except for the actual parts page itself: http://www.swstruckbodiesandtrailers.com/index.php?pageId=69

但是,在IE 7中,除了实际的零件页面本身之外,每个页面都有效:http://www.swstruckbodiesandtrailers.com/index.php?pageId = 69

It actually locks the entire browser up, and after reviewing the source, I have no idea why.

它实际上锁定了整个浏览器,在查看源代码后,我不知道为什么。

Does anyone have any insight? It's merely simple HTML, CSS, and a few lines of jQuery--nothing out of the ordinary.

有没有人有任何见解?它只是简单的HTML,CSS和几行jQuery - 没什么特别的。

I've never encountered a page that froze the entire browser before.

我以前从未遇到过冻结整个浏览器的页面。

3 个解决方案

#1


5  

You need to cut down the site piece by piece and isolate the exact cause of the lock up.

您需要逐个减少站点并隔离锁定的确切原因。

#2


3  

Alright, I isolated the offensive code to this:

好吧,我把令人反感的代码隔离到了这个:

<div class='partsLevel1'> 
  <h3><span class='floatLeft'>Box Parts (0)</h3> 
</div>

Clearly this is a simple blunder on my part by forgetting to close the <span> tag. I've quite surprised this actually freezes IE though. That doesn't seem like a very graceful failure on their part.

很明显,忘记关闭标签,这是一个简单的错误。我很惊讶这实际上冻结了IE。这似乎不是他们非常优雅的失败。

It looks like when IE gets multiple floated elements that remain unclosed, it just locks up entirely.

看起来当IE获得多个仍然未闭合的浮动元素时,它只是完全锁定。

And the reason I have a seemingly unnecessary <span> inside of a <h3> element is because when you're logged in, there are a few administrative links that are floated right.

我在

元素中看似不必要的的原因是因为当您登录时,有一些管理链接正确浮动。

Thanks for your help everyone.

谢谢大家的帮助。

#3


0  

My guess would be that there is an AJAX call that is not getting to the correct ReadyState for some reason.

我的猜测是,由于某种原因,有一个AJAX调用无法进入正确的ReadyState。

#1


5  

You need to cut down the site piece by piece and isolate the exact cause of the lock up.

您需要逐个减少站点并隔离锁定的确切原因。

#2


3  

Alright, I isolated the offensive code to this:

好吧,我把令人反感的代码隔离到了这个:

<div class='partsLevel1'> 
  <h3><span class='floatLeft'>Box Parts (0)</h3> 
</div>

Clearly this is a simple blunder on my part by forgetting to close the <span> tag. I've quite surprised this actually freezes IE though. That doesn't seem like a very graceful failure on their part.

很明显,忘记关闭标签,这是一个简单的错误。我很惊讶这实际上冻结了IE。这似乎不是他们非常优雅的失败。

It looks like when IE gets multiple floated elements that remain unclosed, it just locks up entirely.

看起来当IE获得多个仍然未闭合的浮动元素时,它只是完全锁定。

And the reason I have a seemingly unnecessary <span> inside of a <h3> element is because when you're logged in, there are a few administrative links that are floated right.

我在

元素中看似不必要的的原因是因为当您登录时,有一些管理链接正确浮动。

Thanks for your help everyone.

谢谢大家的帮助。

#3


0  

My guess would be that there is an AJAX call that is not getting to the correct ReadyState for some reason.

我的猜测是,由于某种原因,有一个AJAX调用无法进入正确的ReadyState。