• 竖排轮播


    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title></title>
    </head>
    <!--<link rel="stylesheet" href="css/marquee.css" />-->

    <-- http://demo.lanrenzhijia.com/2016/marquee1101/  网址-->
    <style>
    *{margin:0;padding:0;list-style-type:none;}
    a,img{border:0;}
    a{color:#333;}
    .demopage{960px;margin:0 auto;}
    /* #marquee2 */
    #marquee2{
    162px;
    /*height:324px;*/
    height: 648px;
    overflow:hidden;
    }
    #marquee2 ul li{
    float:left;
    border:1px solid #ddd;
    height:150px;
    padding:5px;
    }
    #marquee2 ul li img{display:block;}
    .control{
    height:24px;
    line-height:24px;
    overflow:hidden;
    padding:15px 0 0 0;
    }
    #marquee2 ul li{
    float:left;
    border:1px solid #ddd;
    120px;
    height:150px;
    padding:5px;
    }
    .aa1{
    background:red;
    }
    .aa2{
    background:orange;
    }
    .aa3{
    background:yellow;
    }
    .aa4{
    background:green;
    }
    .aa5{
    background:greenyellow;
    }
    .aa6{
    background:blue;
    }
    .aa7{
    background:purple;
    }
    .aa8{
    background:skyblue;
    }
    </style>
    <body>
    <div class="demopage">
    <div id="marquee2">
    <ul style="height: 1296px;">

    <li class="aa1"></li>
    <li class="aa2"></li>
    <li class="aa3"></li>
    <li class="aa4"></li>
    <li class="aa5"></li>
    <li class="aa6"></li>
    <li class="aa7"></li>
    <li class="aa8"></li>
    </ul>
    </div>
    <div class="control">
    <a href="javascript:void(0);" id="goD">上键</a>
    <a href="javascript:void(0);" id="goU">下键</a>

    </div>
    </div>
    </body>
    <script type="text/javascript" src="js/jquery-1.8.3.min.js" ></script>
    <script type="text/javascript" src="js/marquee.js" ></script>
    <script type="text/javascript">

    //一次纵向滚动一个
    $('#marquee2').kxbdSuperMarquee({
    distance:162,
    time:3,
    btnGo:{up:'#goU',down:'#goD'},
    direction:'down'
    });

    </script>
    </html>

  • 相关阅读:
    页面上有10个多选框,实现三个按钮(重置、反选、全选)功能
    鼠标点哪 哪出15*15的圆型div
    es写简单的留言板
    面试准备(3)事件循环
    面试准备(2)async+await的使用与原理
    面试准备(1)重排与重绘和验证码
    vue项目修改el-input样式
    echarts画雷达图详解
    决心
    国庆中秋
  • 原文地址:https://www.cnblogs.com/yingxi0/p/9263338.html
Copyright © 2020-2023  润新知