微博输入布局

原创2019-03-04 14:56:4373
摘要:完成课上老师所做的微博输入布局<!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8">    <title>微博输入</title>    <style

完成课上老师所做的微博输入布局

<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <title>微博输入</title>
   <style>
body{
font-size: 15px;
}
.box{
width: 30%;
height: 240px;
margin:0 auto;
padding: 10px;
border: 1px solid #ccc;
}
.box #shuru{
margin-left: 255px;
color: #ccc;
font-size: 15px;
}
textarea{
width: 98%;
margin: 10px 2px;
}
.box #sp1,#sp2,#sp3,#sp4,#sp5,#sp6{
float: left;
width: 45px;
height: 32px;
line-height: 32px;
padding-left: 26px;
}
#sp1{background: url(images/an5.png) no-repeat no-repeat left center; }
#sp2{background: url(images/an4.png) no-repeat no-repeat left center; }
#sp3{background: url(images/an3.png) no-repeat no-repeat left center; }
#sp4{background: url(images/an2.png) no-repeat no-repeat left center; }
#sp5{background: url(images/an1.png) no-repeat no-repeat left center; }
#sp6{
margin-left: 60px;
color: #888;
}
#btn{float: left;width: 80px;height: 30px;boder:none;background: #ffc09f;color: #fff;border-radius: 5px;}

   </style>
</head>
<body>
   <div class="box">
       <img src="images/12.png" alt="">
       <span id="shuru" >还可以输入字</span>
       <textarea name="" id="text" cols="30" rows="10"></textarea>
       <span id="sp1">表情</span>
       <span id="sp2">图片</span>
       <span id="sp3">视频</span>
       <span id="sp4">话题</span>
       <span id="sp5" style="width: 50px">长微博</span>
       <span id="sp6">公开</span>
       <input id="btn" type="button" value="发布">
   </div>
</body>
</html>Q)C6[M@[}{O~I[%%X4NFARU.png

发布手记

热门词条