亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

微博字?jǐn)?shù)限制

Original 2019-05-06 14:52:47 333
abstract:<!doctype html><html><head><meta charset="utf-8"><title>微博字?jǐn)?shù)限定</title></head><style type="text/css">body{ background-color:#71C5F2}.

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>微博字?jǐn)?shù)限定</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:查無(wú)此人Correction time:2019-05-07 09:51:00
Teacher's summary:完成的不錯(cuò)。老師講的案例,要知道用在哪里。這個(gè)案例,只要是輸入框,都可以用。繼續(xù)加油。

Release Notes

Popular Entries