zoukankan      html  css  js  c++  java
  • 文字的向上滚动

    .gundong{
                    height: 50px;
                    overflow: hidden;
                }
                .gundong ul{
                    list-style: none;
                     100%;
                    display: block;
                    height: 50px;
                }
                .gundong ul li{
                    height: 50px;
                    background: bisque;
                    line-height: 50px;
                }

    <div class="gundong">
                <ul>
                    <li>dfh</li>
                    <li>dfhdif</li>
                    <li>feuif</li>
                    <li>fhur</li>
                    <li>fhuerfye</li>
                    <li>ewrope</li>
                    <li>pdfo</li>
                </ul>
            </div>

    setInterval(function(){
                    if(!$('.gundong ul').is(':animated')){
                        var hei =$('.gundong ul li').height();
                        var len = $('.gundong ul li').length;
                        var heilen = hei*len;
                        var whei = hei;
                        var mar1= parseInt($('.gundong ul').css('margin-top'));
                        var endmar = (parseInt((heilen/whei)-1)*whei);
                        if(mar1<=-endmar){
                            $('.gundong ul').animate({marginTop:'0px'},300)
                        }else{
                            $('.gundong ul').animate({marginTop:mar1-whei+'px'},300)
                        }
                    }
                },3000)

  • 相关阅读:
    数据结构第九篇——栈与递归
    c++重载(以运算符重载为主)
    (五)分数阶微分方程的解法及其适定性问题介绍
    (四)分数阶微积分
    (三)分数阶微积分
    (二)分数阶微积分
    小学教育试讲
    高中教育试讲
    【级数】 求和
    题东湖风光村
  • 原文地址:https://www.cnblogs.com/impossible1994727/p/7278538.html
Copyright © 2011-2022 走看看