微博文字输入框案例

Original 2019-02-06 10:23:19 245
abstract:<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">&

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<meta http-equiv="X-UA-Compatible" content="ie=edge">

<title>微博输入</title>

<style>

body{font-size: 12px;}

.box{width: 600px;height: 175px; border:7px solid pink;margin:50px auto;}

.box img{float:left;margin-left: 10px;}

.box1{float:right;/* margin-right: 50px; */width: 150px;height: 24px;font-size:14px;color: #888;line-height: 24px;}

.box1 span{font-size: 16px;font-weight: bold;}

#text{width: 584px;height: 100px;border:1px solid #888;margin:5px;resize:none;}

.box .sp1{float: left;width: 30px;height: 32px;line-height: 32px;padding-left: 26px;}

#sp1{background: url(img/images1/an5.png) no-repeat left center;}

#sp2{background: url(img/images1/an4.png) no-repeat left center;}

#sp3{background: url(img/images1/an3.png) no-repeat left center;}

#sp4{background: url(img/images1/an2.png) no-repeat left center;}

#sp5{background: url(img/images1/an1.png) no-repeat left center;width: 40px;}

#sp6{margin-left: 150px;margin-right: 15px;color:#888;}

#bt{float:left;width: 80px;height: 30px;border: none;background: #ffc09f;color:#fff;border-radius: 5px;}



</style>

</head>

<body>

<div class="box">

<img src="img/images1/12.png" alt="">

<div class="box1">还可以输入:<spann id="number">150</span>字</div>

<textarea class="" value="" id="text" maxlength="150" placeholder="有新鲜事,分享给大家哦!"></textarea>

<span class="sp1" id="sp1">表情</span>

<span class="sp1" id="sp2">图片</span>

<span class="sp1" id="sp3">视频</span>

<span class="sp1" id="sp4">话题</span>

<span class="sp1" id="sp5">长微博</span>

<span class="sp1" id="sp6">公开</span>

<input type="button" id="bt" value="发布">

</div>

</body>

</html>


Release Notes

Popular Entries