简体   繁体   English

IE8冻结并激活了active.css // //某些类别在FF chrome中不再起作用

[英]IE8 freeze with responsive.css active // some classes don't work anymore in FF chrome

Since this morning i've a strange problem: 从今天早上开始,我遇到了一个奇怪的问题:

IE8 freeze completly with a certain css file active; IE8完全冻结,并且某个css文件处于活动状态; if i comment out the file, the site is loading fine, so it's definitly this file. 如果我注释掉该文件,则说明该站点正在正常加载,因此绝对是该文件。 Also, Chrome and firefox won't accept only some classes in the same css file (??). 同样,Chrome和firefox不会仅接受同一CSS文件(??)中的某些类。 The classes simply won't appear in the chrome inspector. 这些类根本不会出现在Chrome检查器中。 I've read again and again the file, but i can't find any errors. 我已经读了一次又一次的文件,但是我找不到任何错误。 The website is still hosted on localhost. 该网站仍托管在localhost上。

HERE is the link to the css file. 这里是指向css文件的链接。

In any case it's a weird problem. 无论如何,这是一个奇怪的问题。

Thanks in advance for helping. 在此先感谢您的帮助。

Nothing looks abnormal. 看起来没什么异常。 So the best method might be to test blocks of code from that file to find the root of your problem. 因此,最好的方法可能是测试该文件中的代码块以找到问题的根源。

I would first test on another computer's IE8 to see if the problem exists or is an isolated incidence. 我将首先在另一台计算机的IE8上进行测试,以查看问题是否存在或是否是孤立的事件。

Then, I'd test by removing half of the CSS code and find out if the other half still works and then vice versa. 然后,我将通过删除一半的CSS代码进行测试,以确定另一半是否仍然有效,反之亦然。 Instead of looking through your entire CSS line-by-line, formulate an easier, testable solution. 而不是逐行查看整个CSS,而是制定一个更简单,可测试的解决方案。

After another look on the file i've found the problem: there was missing a media query bracket before 再次查看文件后,我发现了问题:之前缺少媒体查询括号

@media (max-width: 360px)

But still cannot understand why IE8 is freezing without an { (??) 但是仍然无法理解为什么IE8在没有{(??)的情况下会冻结

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

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