textarea {
width: 100%;
border: none;
outline: none;
resize: none;
overflow: hidden;
padding-bottom: 100%;
background-color: inherit;
}
<textarea readonly="readonly"></textarea>
textarea {
width: 100%;
border: none;
outline: none;
resize: none;
overflow: hidden;
padding-bottom: 100%;
background-color: inherit;
}
<textarea readonly="readonly"></textarea>
转载于:https://www.cnblogs.com/Man-Dream-Necessary/p/5869005.html