如何在ASP.NET MVC 2中禁止调整TextArea.For的大小?

r.r*_*r.r 0 c# asp.net-mvc textarea

可能重复:
如何禁用TextArea的可调整大小的属性?

我想禁用在我的webapplication中使用TextArea.For中的resizing.在谷歌浏览器和其他浏览器,它看起来很糟糕.我该怎么做?

Mat*_*hew 6

要禁用浏览器调整textareas大小的功能,请使用以下css:

textarea {
    resize: none;
}
Run Code Online (Sandbox Code Playgroud)