element ui textarea禁止拉伸
时间: 2023-08-29 15:09:48 浏览: 226
element ui
要禁止Element UI的textarea组件的拉伸,你可以通过添加以下CSS样式来实现:
```css
.el-textarea__inner {
resize: none;
}
```
这样设置之后,textarea组件将无法被拉伸。你可以将这段代码添加到你的样式文件中,或者在相关的HTML文件中使用内联样式来应用这个样式。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [elementUI中的文本域(textarea)禁止拉伸样式](https://blog.csdn.net/weixin_63730900/article/details/129996613)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [textarea文本域宽度和高度width及height自动适应实现代码](https://download.csdn.net/download/weixin_38679277/12893344)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [如何为 Element UI 里的 autosize textarea 设置高度](https://download.csdn.net/download/weixin_38724919/13129704)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文