Zi 字媒體
2017-07-25T20:27:27+00:00
textarea auto height
textarea {
resize: none;
}
$(document).ready(function() {
$("textarea.auto-height").css("overflow", "hidden").bind("keydown keyup", function() {
$(this).height('0px').height($(this).prop("scrollHeight") + 'px');
}).keydown();
});
寫了
5860316篇文章,獲得
23313次喜歡