文本框设置:随内容增加而增高
文本框设置:随内容增加而增高
<textarea name="desc" id="textarea" onpropertychange="this.style.height = this.scrollHeight + 'px';" oninput="this.style.height = this.scrollHeight + 'px';" placeholder="说明···"></textarea>
上传图片文件:
<img src="img.png" alt="" onClick="document.getElementById('file').click()" id="im">
<input type="file" id="file" name="file" style="display:none;" accept="image/gif,image/jpeg,image/jpg,image/png"/>