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
Background: I'm working on asset reporting re...
About who Displays users logged into the system. ...
Copy code The code is as follows: <HTML> &l...
Find the problem Let's look at the problem fi...
Experimental environment: MYSQL 5.7.22 Enable bin...
This article mainly introduces the implementation...
Today we will implement a fragmented image loadin...
Do you add an alt attribute to the img image tag? ...
The development of Docker technology provides a m...
Table of contents background 1) Enable the keepch...
introduction: Nowadays, many dynamic verification...
Test: Chrome v80.0.3987.122 is normal There are t...
Table of contents App.vue sub1.vue sub2.vue Summa...
background When performing a SQL query, I tried t...
Description of port availability detection when p...