伊人怎会持宠而骄
希望有人懂你的低头不语、小心翼翼守护你的孩子气
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <style>
        *{
            margin:0;
            padding:0;
        }
        #container{
            height:170px;
            width:500px;
            background:teal;
            margin:200px;
            overflow:hidden;
            position:relative;
        }
        #box{
            position:absolute;
            left:0;
            top:0;
        }
        ul{
            list-style:none;    
        }
    </style>
    <body>
        <div id="container">
            <div id="box">
                <ul>
                    <li>好好学习天天向上,困了累了想想mm,想想sg,加油11</li>
                    <li>好好学习天天向上,困了累了想想mm,想想sg,加油1</li>
                    <li>好好学习天天向上,困了...</li>
                    <li>好好学习天天向上,困了累了想想mm,想想sg,加油1</li>
                    <li>好好学习天天向上,困了累了想想mm,想想sg,加油1</li>
                    <li>好好学习天天向上,困了累了...</li>
                    <li>好好学习天天向上,困了累了想想mm,想想sg,加油1</li>
                    <li>好好学习天天向上,困了...</li>
                    <li>好好学习天天向上,困了累了想想mm,想想sg,加油1</li>
                    <li>好好学习天天向上,困了累了想想mm,想想sg,加油10</li>
                </ul>
                <ul>
                    <li>好好学习天天向上,困了累了想想mm,想想sg,加油11</li>
                    <li>好好学习天天向上,困了累了想想mm,想想sg,加油1</li>
                    <li>好好学习天天向上,困了...</li>
                    <li>好好学习天天向上,困了累了想想mm,想想sg,加油1</li>
                    <li>好好学习天天向上,困了累了想想mm,想想sg,加油1</li>
                    <li>好好学习天天向上,困了累了...</li>
                    <li>好好学习天天向上,困了累了想想mm,想想sg,加油1</li>
                    <li>好好学习天天向上,困了...</li>
                    <li>好好学习天天向上,困了累了想想mm,想想sg,加油1</li>
                    <li>好好学习天天向上,困了累了想想mm,想想sg,加油10</li>
                </ul>
            </div>
        </div>
    </body>
</html>
<script src="../public.js"></script>
<script>
    var timer = null;
    var num = 0;
    timer = setInterval( function(){
        num--;
        $id("box").style.top = num + "px";
        if( num < -( $id("box").children[0].offsetHeight ) ){
            num = 0;
        }
    },30 )
</script>
posted on 2019-01-28 09:40  伊人怎会持宠而骄  阅读(575)  评论(0编辑  收藏  举报