亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

微博輸入框html+css

original 2019-02-01 23:45:28 288
abstrait:<!DOCTYPE html> <html>          <head>         <meta charset="UTF-8">  
<!DOCTYPE html>
<html>
    
    <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: 160px;
            border: 8px solid pink;
            margin: 0 auto;
            padding: 10px;
        }
        img {
            float: left;
        }
        .box-num {
            float: left;
            margin-left: 255px;
            width: 150px;
            height: 24px;
            font-size: 14px;
            text-align: right;
            color: #888;
        }
        .box-num span {
            font-size: 16px;
            font-weight: bold;
        }
        #text {
            width: 594px;
            height:100px;
            border: 1px solid #ccc;
            margin-top: 5px;
            clear: both;
        }
        .box .item1, .item2, .item3, .item4, .item5, .item6 {
            float: left;
            width: 30px;
            height: 36px;
            line-height: 32px;
            padding-left: 26px;
        }
        .item1 {
            background: url(images/an5.png) no-repeat left center;
        }
        .item2 {
            background: url(images/an4.png) no-repeat left center;
        }
        .item3 {
            background: url(images/an3.png) no-repeat left center;
        }
        .item4 {
            background: url(images/an2.png) no-repeat left center;
        }
        .item5 {
            background: url(images/an1.png) no-repeat left center;
            width: 40px;
        }
        .item6 {
            margin-left: 160px;
            margin-right: 14px;
            color: #888;
        }
        #but {
            float: left;
            border: none;
            background: #ff6500;
            color: #fff;
            width: 80px;
            height: 30px;
            border-radius: 5px;
        }
        </style>
    </head>
    
    <body>
        <div class="box">
            <img src="images/12.png">
            <div class="box-num">還可以輸入<span id="num"></span>字</div>
            <textarea id="text"></textarea> <span class="item1">表情</span>
 <span class="item2">圖片</span>
 <span class="item3">視頻</span>
 <span class="item4">話題</span>
 <span class="item5">長(zhǎng)微博</span>
 <span class="item6">公開</span>

            <input type="button" value="發(fā)布" id="but">
        </div>
    </body>

</html>

熟能生巧,多多敲代碼,幫助記憶。

Notes de version

Entrées populaires