element-ui文本域字体
时间: 2023-09-06 10:13:00 浏览: 182
element-ui文本域的字体可以通过CSS样式来设置。可以在.el-textarea__inner样式中设置字体属性。例如,可以使用以下样式将字体设置为"Helvetica Neue"或其他字体:
.el-textarea__inner{
font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
}
这样设置后,element-ui文本域中的文本将使用指定的字体。如果你想调整文本域的高度,可以在<el-input type="textarea" v-model="form.desc"></el-input>元素上添加属性:rows="2"。默认情况下,这个属性的值是2,你可以根据需要调整这个数字来增加或减少文本域的高度。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [element-ui表单中的文本域 调整高度](https://blog.csdn.net/yunchong_zhao/article/details/103792330)[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: 50%"]
- *2* [element-ui input 与textarea字体不一样](https://blog.csdn.net/weixin_50013077/article/details/128290535)[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: 50%"]
[ .reference_list ]
阅读全文