h4 { color:#B1B1B1; font-weight:100; font-size:14px; } #div_editor { width:400px; border:1px solid #A9A9A9; } #div_editor textarea { border:0px; width:398px; height:45px; outline:0px; resize:none; } #div_editor div.d-last { text-align:right; font-size:10px; color:#B1B1B1; display:none; } #btn_submit { color:white; background-color:#8AC328; width:80px; height:25px; border:1px solid #9CC868; margin:1px; }
当用户想在一个输入框中输入一下字,但是不能输太多,这时候就要有字数限制,但是还可以时时显示还可输入多少字