CSS 验证错误? Aptana studio 与 W3-Validator
#header ul li a[title="Über uns"] {
background-image:url(images/header.jpg);
}
Aptana studio 认为这是一个词汇错误,因为第一行中有 Ü。 W3-Validator 表示其 CSS 有效,浏览器也能理解。那么它是一个错误吗?
#header ul li a[title="Über uns"] {
background-image:url(images/header.jpg);
}
is said to be an lexical error by Aptana studio because of the Ü in the first line. The W3-Validator says its valid CSS, and also the Browsers understand. So its a bug?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只要您的文件被保存并且页面以支持德语变音符号(例如“Ü”)(例如
utf-8
)的编码方式交付,一切都很好。如果是这样,并且 Aptana studio 仍然显示错误,则这是 Aptana studio 中的错误。as long as your files are saved and the page is delivered with an encoding that supports german umlauts like "Ü" (
utf-8
, for example), everything is fine. if so, and Aptana studio still shows an error, it's a bug in Aptana studio.如果您的网址是英文,则可以解决此问题:
#header ul li a[href~="about"] {
我认为,Aptana 开发人员只是忘记了变音符号。
Workaround for this, if your url is in english:
#header ul li a[href~="about"] {
I think, the Aptana devs just forgot the Umlauts.