Tag:autosize

  • How to set the height of autosize textarea in element UI

    Time:2020-9-27

    In the element UItextarea inputWhen set to autosize, the default height of the text box is33, which does not conform to the design Default style In the browsercheckElements, finding heightBytextareaOfheightandmin-heightTo controlPosition of text in boxBypaddingControl attempts Modify theheightandpaddingTo see if it works stayGlobal styleAdd: $inputHeight: 38px; $inputFontSize: 16px; .el-textarea { textarea { Padding: 8px; // […]