如何抑制 Aptana Studio 3 中的某些 CSS 错误? [英] How can I suppress certain CSS errors in Aptana Studio 3?

查看:28
本文介绍了如何抑制 Aptana Studio 3 中的某些 CSS 错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Aptana Studio 3 进行 Web 开发,除了一些小问题之外,我喜欢它.其中一个抱怨是 Aptana 决定将某些 CSS 参数视为无效参数,在该行代码中用红色大 X 标记它们.当错误确实是错误,但某些完全有效但不属于 w3 规范的一部分(例如光标:无)被标记为无效时,这很有用.

I use Aptana Studio 3 for my web development, and I love it except for a few small gripes. One of these gripes is that Aptana decides to treat some CSS parameters as invalid, marking them with a big red X on that line of code. This is helpful when the error is really an error, but some parameters that are perfectly valid but not a part of the w3 spec (cursor: none, for example) get flagged as invalid.

我会忽略这些错误,但与任何其他 Eclipse 变体一样,项目中任何地方的错误都会导致整个项目被标记为有错误.然后,每当我尝试发布它时都会收到警告,而我忽略了这些警告.这既烦人又冒险——我可能会无意中忽略一个真正的警告.

I would just ignore these errors, but as in any other eclipse variant, an error anywhere in a project results in the whole project marked as having errors. Then I get warnings whenever I try to publish it, which I ignore. This is both annoying and risky-- I could be ignoring a real warning by accident.

有没有办法抑制 Aptana/Eclipse 中的特定错误,或者全局抑制所有 CSS 错误?

Is there any way to suppress specific errors in Aptana/Eclipse, or perhaps to suppress all CSS errors globally?

如果做不到这一点,有没有人知道一个 w3-valid 替代 cursor: none;当鼠标悬停在元素上时隐藏鼠标?

Failing that, does anyone know a w3-valid alternative to cursor: none; that hides the mouse when it hovers over an element?

推荐答案

您可以为 CSS 错误添加过滤器,或完全关闭 CSS 验证.请参阅此处了解更多信息:

You can add filters for CSS errors, or turn off CSS validation altogether. Please see here for more information:

  1. 转到首选项">工作室">验证"
  2. 点击 CSS 节点
  3. 根据需要添加或编辑选项

http://wiki.appcelerator.org/display/tis/Adding+custom+error+message+filters+to+the+Problems+View

这篇关于如何抑制 Aptana Studio 3 中的某些 CSS 错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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