css
.test_box{
width:500px;
min-height:300px;
max-height:500px;
margin:0 auto;
padding:3px;
outline:0;//border外面[color style width]
border:thin solid #666;
font-size:12px;
word-wrap:break-word;
overflow-x:hidden;
overflow-y:auto;
-webkit-user-modify:red-write-plaintext-only;
}
html
<div class="test-box" contenteditable="true">
</br>
</div>