zoukankan      html  css  js  c++  java
  • 1026

       好长一段时间没更新过了,哎!又开始倒腾js了,老是朦朦胧胧的,从今天开始我要记录下来才行,嗯,应该都是比较基础的东西,方便自己学习。

    <style type="text/css">
                *{ padding:0; margin:0;}
                .c{ 960px; margin:30px auto 0; border:1px solid #CCCCCC; height:40px; overflow:hidden; font-size:12px;}
                .c ul{ list-style-type:none; margin-top:0; }
                .c ul li{ line-height:40px; height:40px; padding-left:20px;}
            </style>   
     

    <div class="c" >
            <ul id="xx">
                <li>1111111111</li>
                <li>22222222</li>
                <li>3333333333</li>
                <li>4444444444</li>
            </ul>
        </div>

    <script type="text/javascript">
        var a = 1
        
        function yy(){
            $("#xx").animate({"marginTop":-40*a},500,null,function(){
            
                if(a==3){
                    a=1;
                    return;
                }
                
                a++
                
                setTimeout(function(){
                
                    yy();
                
                },2000);
            
            });

        }//定义一个函数;
        
        yy();
            
        </script>
     


     

  • 相关阅读:
    Day3-B-Round Marriage CodeForces-981F
    Day3-A-Problem H. Monster Hunter HDU6326
    Day3-G
    Day3-I-Squares POJ2002
    Day3-M-Cable master POJ1064
    Day3-N
    Day3-O-Median POJ3579
    Day3-P
    Day3-L-Cup HDU2289
    LeetCode "Majority Element"
  • 原文地址:https://www.cnblogs.com/xym123139/p/2740454.html
Copyright © 2011-2022 走看看