Ie8 及以下版本奇怪地忽略所有 CSS
我以前从未遇到过这种情况,但在检查我的工作后
在 ie8 及以下版本中,我注意到它完全忽略了 css。 css 在其他浏览器中可以读取,但在 ie8 及以下浏览器中不能读取。
我以前从未见过这个。有人有建议吗?
I've never run into this before, but upon checking my work
in ie8 and below I am noticing it completely ignores the css. The css is being read in other browsers but not in ie8 and below.
I've never seen this before. Anyone have a suggestion?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查 style.css,第 51 行:
当我删除额外的引号时,它对我有用。
出于教育的兴趣,我是这样发现问题的:
首先,我使用IE9的开发者工具栏(按键盘上的F12)将浏览器模式切换到IE7。 (IE8 也有开发人员工具栏)然后我查看了 CSS 选项卡,发现它只加载了部分规则集。由于它停在
#extra-spacing
规则处,我知道那里可能存在语法错误。Check style.css, line 51:
When I removed the extra quote, it worked for me.
In the interest of education, this is how I found the problem:
First, I used IE9's developer toolbar (press F12 on the keyboard) to switch the browser mode to IE7. (IE8 also has the developer toolbar) Then I looked on the CSS tab and noticed that it was only loading a partial set of rules. Since it stopped at the
#extra-spacing
rule, I knew there was probably a syntax error there.