After setting Default Style
The height is controlled by Directly modify Add to $inputHeight: 38px; $inputFontSize: 16px; .el-textarea { textarea { padding: 8px; // Set the padding of the text box height: $inputHeight; // Set the height of the text box font-size: $inputFontSize; line-height: 21px; } } After the modification, I found:
Interestingly, Faced with this problem, I made two attempts !important Setting -> Give up MyTextarea Write your own -> Not preferred Padding determines the height During debugging, I found that the initial height of So, I adjusted the size of Then change $inputFontSize: 16px; .el-textarea { textarea { padding: 7.5px 0 7.5px 8px; // Just changing the padding here will affect the height of the textarea font-size: $inputFontSize; line-height: 21px; } } Summarize This is the end of this article on how to set the height for the autosize textarea in Element UI. For more information about Element UI autosize textarea height, please search 123WORDPRESS.COM’s previous articles or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! |
<<: Example of how to achieve semi-transparent background image and opaque content in CSS3
Install axios and implement communication Here we...
Lists are used to list a series of similar or rela...
This article records the detailed installation pr...
function 0. Display current time Command: select ...
Table of contents Preface: 1. Understand lock wai...
1Basic steps of echarts Four Steps 1 Find the DOM...
Table of contents 1. Introduction 2. Advantages 3...
<br />This tag can be used to directly add a...
The installation of MySQL 8.0.12 took two days an...
If you don't want to use javascript control, t...
In Docker Start all container commands docker sta...
I have a product parts table like this: part part...
Table of contents Short Polling Long-Polling WebS...
background First, let me explain the background. ...
Preparation: 1. Install VMware workstation softwa...