'resize:none'有效,但带有红色下划线并反映...... [英] 'resize:none' works but with red underlined and reflects...

查看:133
本文介绍了'resize:none'有效,但带有红色下划线并反映......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了通过鼠标拉动来停止文本框的宽度和高度扩展,我使用了resize:none。它可以工作,但在代码中它以红色加下划线并且不会引发任何错误。在出现任何其他错误的同时,此调整大小:none也与错误列表一起加入。

是否有更安全方面的更正。



In order to stop the textbox width and height expansion by mouse pulling I used resize:none. It works but in the code it is underlined in red color and does not throw any error. AT the same time whenever there is anyother error appearing, this resize:none also joins with the error list.
Is there any correction to be made for safer side.

<asp:TextBox ID="TextBox8"     AutoPostBack="true"  runat="server" Textmode="multiline" width="644"  ForeColor="White" BackColor="DarkSeaGreen" Height="69"

                     style="z-index: 1; margin-top:6px; resize:none; left:1px"

                     ></asp:TextBox>







谢谢。




Thanks.

推荐答案

调整大小 CSS3 属性和视觉Studio使用 CSS 2.1

因此,它验证它不是已知的财产。



这个错误完全正常。没问题。



但是如果你在构建项目时遇到问题,那么你需要通过将它们视为警告来绕过这些错误。



为此,请参阅 - CSS 2.1错误:不是已知的属性名称 [< a href =http://stackoverflow.com/a/7247014target =_ blanktitle =New Window> ^ ]。
Resize is CSS3 property and Visual Studio use CSS 2.1.
So, it validates that it is not a known property.

And this error is completely fine. No problem.

But if you have problems in building the project, then you need to by-pass these errors by just treating them as warnings.

To do that, refer - CSS 2.1 errors: not a known property name[^].


这篇关于'resize:none'有效,但带有红色下划线并反映......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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