abstract:通过css ,div,js,实现微博输入框的小案例<!DOCTYPE html><html><head> <title>微博输入</title> <style type="text/css"> .box{height: 300px;width: 600px;border:6px solid pink;bor
通过css ,div,js,实现微博输入框的小案例
<!DOCTYPE html>
<html>
<head>
<title>微博输入</title>
<style type="text/css">
.box{height: 300px;width: 600px;border:6px solid pink;border-radius: 7px;margin: 0px auto;}
.box1{float: right;text-align: right;font-size: 16px;color: #888}
.box1 span{font-size: 20px;color: red}
#text{height: 200px;width: 500px;border: 2px solid #ffc09f;margin:10px 40px;}
.box #img1,#img2,#img3,#img4,#sp1,#sp2{float: left;width: 50px;height: 50px;line-height: 50px;padding-left: 30px;}
#img1{background: url(images/an1.png) no-repeat left center;}
#img2{background: url(images/an2.png) no-repeat left center;}
#img3{background: url(images/an3.png) no-repeat left center;}
#img4{background: url(images/an4.png) no-repeat left center;}
#bt{float: right;width: 80px;height: 30px;border: none;background: #ffc09f;color: #fff;border-radius: 5px;margin-right: 5px;}
</style>
</head>
<body>
<div class="box">
<img src="images/12.png">
<div class="box1">你还可以输入<span id="number"></span>字</div>
<textarea id="text"></textarea>
<span id = "img1">表情</span>
<span id = "img2">图片</span>
<span id = "img3">视频</span>
<span id = "img4">话题</span>
<span id = "img4">长微博</span>
<input type="button" value="发布" id="bt">
</div>
<script type="text/javascript">
var number,text,m
window.onload = function(){
}
</script>
</body>
</html>
Correcting teacher:韦小宝Correction time:2018-12-24 11:54:50
Teacher's summary:这小案例写的就很不错啊!课后记得要多找点类似的案例来写一写!