abstract:<!doctype html><html><head><meta charset="utf-8"><title>微博字数限定</title></head><style type="text/css">body{ background-color:#71C5F2}.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>微博字数限定</title>
</head>
<style type="text/css">
body{ background-color:#71C5F2}
.share_weibo_wp{width:480px; padding:20px; background-color:#fff; margin-left:auto; margin-right:auto; margin-top:20px;-khtml-border-radius:10px;-ms-border-radius:10px;-o-border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px;behavior: url(ie-css3.htc);}
.count_txt{color: #B5B5B5;text-align: right;}
.count_txt strong {font-family: georgia;font-size: 24px; padding: 0 2px;}
.inputstyle {height: 75px;line-height: 18px;overflow-x: hidden;overflow-y: auto;width: 472px;}
</style>
<script type="text/javascript">
function checkLength(which) {
var maxChars = 120;
if (which.value.length > maxChars)
which.value = which.value.substring(0,maxChars);
var curr = maxChars - which.value.length;
document.getElementById("currentLength").innerHTML = curr.toString();
}
</script>
<body>
<div class="cl share_weibo_wp" style="">
<div class="cl">
<h4 class="l">分享到微博</h4>
<span class="r count_txt">还能输入<strong id="currentLength">120</strong>字</span>
</div>
<textarea onkeyup="checkLength(this);" class="textarea radius inputstyle" name="" cols="" rows=""></textarea>
</div>
</body>
</html>
Correcting teacher:查无此人Correction time:2019-05-07 09:51:00
Teacher's summary:完成的不错。老师讲的案例,要知道用在哪里。这个案例,只要是输入框,都可以用。继续加油。