Html
    Css
    Js

    
                        
 .wrap {
	width:406px;
	text-align:right;
	margin:auto;
}
textarea {
	width:400px;
	max-width:400px;
	height:200px;
	display:block;
	margin:auto;
	font-size:20px;
	box-shadow:-2px -4px 8px rgba(190,189,189,0.42) inset;
}
input[type=button] {
	margin-top:12px;
	padding:10px;
	outline:none;
	border:none;
	cursor:pointer;
	vertical-align:top;
	color:#fff;
	font-weight:bold;
	font-family:Arial;
	background:-webkit-linear-gradient(top,#71ccfd,#2d76fd);
	border-radius:8px;
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

统计字符的长度

1个汉子为2个字符.

0