abstrait:通過(guò)css ,div,js,實(shí)現(xiàn)微博輸入框的小案例<!DOCTYPE html><html><head> <title>微博輸入</title> <style type="text/css"> .box{height: 300px;width: 600px;border:6px solid pink;bor
通過(guò)css ,div,js,實(shí)現(xiàn)微博輸入框的小案例
<!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">長(zhǎng)微博</span>
<input type="button" value="發(fā)布" id="bt">
</div>
<script type="text/javascript">
var number,text,m
window.onload = function(){
}
</script>
</body>
</html>
Professeur correcteur:韋小寶Temps de correction:2018-12-24 11:54:50
Résumé du professeur:這小案例寫的就很不錯(cuò)啊!課后記得要多找點(diǎn)類似的案例來(lái)寫一寫!