CSS 验证错误? Aptana studio 与 W3-Validator

发布于 2024-12-17 10:44:58 字数 194 浏览 4 评论 0原文

#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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

圈圈圆圆圈圈 2024-12-24 10:44:58

只要您的文件被保存并且页面以支持德语变音符号(例如“Ü”)(例如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.

吐个泡泡 2024-12-24 10:44:58

如果您的网址是英文,则可以解决此问题:

#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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文