Qui-Note官网Logo
导航:Qui-Note/textarea1

textarea1

<style type="text/css">
	.textarea{
	    width: 500px;
	    min-height: 20px;
	    max-height: 300px;
	    _height: 120px;
	    margin:0 auto;
	    padding: 2px;
	    outline: 0; 
	    font-size: 14px;
	    line-height: 24px;
	    word-wrap: break-word;
	    overflow-x: hidden;
	    overflow-y: auto; 
	    border: 1px solid #000; 
	}
</style>
<div class="textarea" contenteditable="true"><br /></div>

效果展示:

输入内容测试textarea自动高度