解决方法
All CSS Syntax is case-insensitive within the ASCII range…
In CSS,identifiers (including element names,classes,and IDs in selectors) can contain only the characters [a-zA-Z0-9] and ISO 10646 characters U+00A1 and higher,plus the hyphen (-) and the underscore (_); they cannot start with a digit,or a hyphen followed by a digit. Identifiers can also contain escaped characters and any ISO 10646 character as a numeric code (see next item). For instance,the identifier “B&W?” may be written as “B\&W\?” or “B\26 W\3F”.
…the case-sensitivity of values of the HTML attributes “id” and “class”,of font names,and of URIs lies outside the scope of this specification.
而不是学习浏览器和情况敏感的条件,最好只是意识到最好的方法是最兼容的:在给定的CSS类的所有代码中使用相同的情况,不要创建两个或更多的CSS类仅在情况下不同的名称。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。