[英]How to prevent manual resizing of md-input-container
I have a textarea that resides inside md-input-container(using angularjs material version 1.1.12).我有一个位于 md-input-container 内的 textarea(使用 angularjs 材料版本 1.1.12)。 I want to prevent users from resizing it and found md-no-resize property for this purpose in AngularJS Material docs.
我想阻止用户调整它的大小,并在 AngularJS Material 文档中找到了用于此目的的 md-no-resize 属性。 But this does not seem to work.
但这似乎不起作用。 I also tried adding style="resize:none" to the inner textarea but that did not work either.
我也尝试将 style="resize:none" 添加到内部文本区域,但这也不起作用。 I would really appreciate if someone can suggest a way.
如果有人可以提出建议,我将不胜感激。 Thanks!
谢谢!
<div layout="column" style="width: 400px;">
<md-input-container md-no-resize="true" style="width: 380px; height: 200px; padding: 10px; overflow-y: auto;">
<textarea ng-model="x"/>
</md-input-container>
</div>
have you tried something like this:你有没有尝试过这样的事情:
<md-input-container md-no-resize="true" style="width: 380px; height: 200px; padding: 10px; overflow-y: auto;">
<textarea ng-model="x" md-no-resize/>
</md-input-container>
Here is the doc about it https://material.angularjs.org/latest/api/directive/mdInput这是关于它的文档https://material.angularjs.org/latest/api/directive/mdInput
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.