这是第二次练习这个功能呢,

Original 2019-02-27 16:19:42 213
abstract:<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>weibo1</title> <style type="text/css"> body{font-size:12px;} .box{width:600px;he

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title>weibo1</title>

<style type="text/css">

body{font-size:12px;}

.box{width:600px;height:160px;border:10px solid pink;margin:0 auto;padding:10px;}

.box img{float:left;}

.box div{float:left;width:150px;height:24px;margin-left: 255px;text-align:center;line-height:24px;font-size:14px;color:#888}

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

    #text{width:600px;height:100px;border:1px solid #ccc;margin-top:5px;}

    #tu1,#tu2,#tu3,#tu4,#tu5,#tu6{float:left;width:30px;height:32px;font-size:14px;color:#888;padding-left:25px;line-height:32px;}

    #tu1{background:url(images/an5.png) no-repeat left center;}

    #tu2{background:url(images/an4.png) no-repeat left center;}

    #tu3{background:url(images/an3.png) no-repeat left center;}

    #tu4{background:url(images/an2.png) no-repeat left center;}

    #tu5{background:url(images/an1.png) no-repeat left center;width:45px;}

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

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


</style>

</head>

<body>

<div class="box">

  <img src="images/12.png">

  <div >你还可以输入<span></span>字</div>

  <textarea id="text"></textarea>

  <span id="tu1">图片</span>

  <span id="tu2">文字</span>

  <span id="tu3">音乐</span>

  <span id="tu4">视频</span>

  <span id="tu5">长微博</span>

  <span id="tu6">公开</span>

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

  




</div>




</body>

</html>

熟悉下以前的html+css  自己跟着老师敲了一遍,看了一遍,自己又写了一遍,发现跟老师写的略微不一样

Release Notes

Popular Entries