结合考虑下面的代码片段在一个视图:CSS - 错误时,代码
<style type="text/css">
input[type=text] {
width: <%: Model.CmsConfiguration.cms_form_width %>px;
}
</style>
现在,至今工作。但是视觉工作室现在在这个视图中显示了一个令人讨厌的错误,如Validation (CSS 2.1): '<%:' is not a valid value for the 'width' property.
。有没有办法摆脱这个?
THX任何的窍门 sl3dg3
看起来很有趣 - 但在我的小范围内可能会有一点点开销? – sl3dg3