IE9突然使CSS区分大小写 [英] IE9 Suddenly CSS Case Sensitive

查看:79
本文介绍了IE9突然使CSS区分大小写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某种原因,CSS在IE9中突然变得区分大小写。我已经在其他人的计算机上尝试过此方法,并且该网站在IE9中显示正常,但是在我的计算机上,除非情况正确,否则它不会显示CSS。

For some reason, CSS has all of a sudden become case sensitive in IE9. I have tried this on other peoples computers and the site displays fine in IE9, but on my machine it wont display CSS unless the case is right.

我可以更改IEs设置到怪癖模式,它可以工作,但不能解释奇怪的行为。

I can change IEs settings this to quirks mode and it will work, but it doesn't explain the strange behavior.

我尝试将所有IE的设置重置为默认值,从而清除了缓存,但无法重新安装它。

I have tried resetting all IE's settings back to default, clearing cache, but was not able to reinstall it.

推荐答案

您是否处于标准模式? IE过去对类和ID选择器不区分大小写,但我了解IE9在标准模式下是区分大小写的。

Are you in standards mode? Historically IE has been case-insensitive for the class and ID selectors, but I understand IE9 is case-sensitive when in standards mode.

CSS属性,大多数值都区分大小写-不敏感,例外是 url(),其中提供图像的网络服务器可能具有区分大小写的文件名。

CSS properties and most values are case-insensitive, exceptions being url() where the webserver serving up images might have case-sensitive filenames.

CSS选择器除CSS以外的部分(例如 #id .class 选择器)外,不区分大小写。有关更多信息,请参见以下问题: CSS选择器是否区分大小写?

CSS selectors are case-insensitive except for parts outside of CSS, such as #id and .class selectors. For more information see this question: Are CSS selectors case-sensitive?

这篇关于IE9突然使CSS区分大小写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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