摘要:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>微博输入</title> <style> body{} *{margin: 0px;p
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>微博输入</title>
<style>
body{}
*{margin: 0px;padding: 0px;}
#cont{border: 10px solid pink;width: 600px;height:180px;margin: 10px auto;padding: 10px;}
img{float: left;}
#right{font-size: 14px;color: #888; float: right;padding-right: 10px; height: 24px;line-height: 24px;}
#right span{font-size: 14px;color: #888;font-weight: bold;}
#text{margin-top: 5px;width: 600px;height: 120px;resize: none;border: 1px solid #888;}
#sp1,#sp2,#sp3,#sp4,#sp5,#sp6{float: left;width: 35px;height: 32px;line-height: 32px;padding-left: 26px;}
#sp1{background: url(images/an5.png) no-repeat left center;}
#sp2{background: url(images/an4.png) no-repeat left center;}
#sp3{background: url(images/an3.png) no-repeat left center;}
#sp4{background: url(images/an2.png) no-repeat left center;}
#sp5{background: url(images/an1.png) no-repeat left center;width: 50px;}
#sp6{margin-left: 120px;margin-right: 15px;color: #888;font-size: 13px;}
#bt{border-style: none;width: 80px;height: 32px;background-color: #FFC09F;border-radius:5px;color: #fff;}
</style>
</head>
<body>
<div id="cont">
<img src="images/12.png" alt="">
<div id="right">还可以输入<span id="number"></span>字</div>
<textarea id="text"></textarea>
<span id="sp1">表情</span>
<span id="sp2">图片</span>
<span id="sp3">视频</span>
<span id="sp4">话题</span>
<span id="sp5">长微博</span>
<span id="sp6">公开</span>
<button id="bt">发布</button>
</div>
</body>
</html>这节课运用了之前学的知识
resize属性指定一个元素是否是由用户调整大小的。
<textarea> 标签定义多行的文本输入控件。
总结我说不上来就是运用了很多之前的知识!