简体   繁体   English

如何禁用来自Aspx文件(HTML,CSS)的警告

[英]How do I disable warnings from Aspx files (HTML,CSS)

All my aspx files give all kinds of annoying warnings like "The CSS Value is not defined" because I'm referencing CSS files from other projects relative to where they will be published in IIS. 我所有的aspx文件都会发出各种烦人的警告,例如“未定义CSS值”,因为我是从其他项目引用相对于IIS中发布它们的位置的CSS文件。 And other things I ignore like "Zoom is not a valid css property" even though I need it to fix crappy IE 6 rendering bugs. 其他我忽略的东西,例如“ Zoom不是有效的CSS属性”,即使我需要它来修复糟糕的IE 6渲染错误。

I tried adding WarningLevel="0" to the <%@ Page tag but I'm still getting warnings. 我尝试在<%@ Page标记中添加WarningLevel="0" ,但仍收到警告。 I still want to receive warnings from my code behind file I just don't care for the HTML, CSS and Javascript warnings. 我仍然想从文件后面的代码中接收警告,我只是不在乎HTML,CSS和Javascript警告。

Anybody know how to do this. 任何人都知道该怎么做。 I would also be interested in disabling specific warnings. 我也想禁用特定的警告。

Thanks 谢谢

Check this: http://msdn.microsoft.com/en-us/library/edzzzth4.aspx 检查此: http : //msdn.microsoft.com/en-us/library/edzzzth4.aspx

Also try this: http://msdn.microsoft.com/en-us/library/edzzzth4.aspx 也可以尝试以下方法: http : //msdn.microsoft.com/en-us/library/edzzzth4.aspx

Finally the best thing to try is 最后,最好的尝试是

http://neilkilbride.blogspot.com/2007/10/visual-studio-error-list-html-errors.html http://neilkilbride.blogspot.com/2007/10/visual-studio-error-list-html-errors.html

Tools > Options > Text Editor > HTML > Validation > Show errors 工具>选项>文本编辑器> HTML>验证>显示错误

Go to Options -> HTML -> Validation 转到选项-> HTML->验证

Uncheck 'Show Errors'. 取消选中“显示错误”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM