<style>
#textarea {
width:300px;
border:1px solid #eee;
min-height:150px;
max-height:300px;
overflow: scroll;
font-size: 14px;
outline: none;
}
</style>
<div id="textarea" contenteditable="true"></div>
contenteditable 是HTML5的属性,但是IE已经支持了
转载请注明原文地址: https://www.6miu.com/read-850227.html