-7
textarea
のボトムパッドを削除するには?テキストエリアの下の詰め物を削除するには?
$('textarea').css("height", $("textarea").prop("scrollHeight"))
textarea {
width: 300px;
resize: none;
margin: 0;
padding: 0;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<textarea>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a </textarea>
パディングはありません。 – PRAISER
どのブラウザをお使いですか? –
あなたはこのhttps://stackoverflow.com/questions/995168/textarea-to-resize-based-on-content-length – Kiwad