zoukankan      html  css  js  c++  java
  • 夺命雷公狗jquery---43滚动公告栏案例

    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="utf-8">
            <title></title>
            <style type="text/css">
                h1,div{
                    margin:0;
                    padding:0;
                    font-size:12px;
                }
    
                h1{
                    width:180px;
                    height:30px;
                    background-color:#369;
                    line-height:30px;
                    text-indent:10px;
                    color:yellow;
                    font-size:14px;
                    font-weight:bold;
                    padding:0;
                    margin:0;
                }
    
                div{
                    width:158px;
                    height:200px;
                    padding:10px;
                    border:1px solid #369;
                }
    
                li{
                    list-style: none;
                    padding:3px;
                    border-bottom:1px dashed #ccc;
                }
                ul{
                    padding:0;
                    margin:0;
                }
    
            </style>
            <script src="js/jquery.js"></script>
            <script>
                $(function(){
                    //setInterval让他循环
                    setInterval(function(){
                        $('ul>li:first').clone().appendTo('ul');
                        $('ul>li:first').remove();
                    },1000);
                });
            </script>
        </head>
        <body>
            <h1>Jquery滚动效果</h1>
            <div>
                <ul>
                    <li>苹果特价</li>
                    <li>西瓜特价</li>
                    <li>香蕉特价</li>
                    <li>雪梨特价</li>
                    <li>哈密瓜特价</li>
                    <li>葡萄特价</li>
                    <li>提子特价</li>
                    <li>桔子特价</li>
                    <li>橙子特价</li>
                </ul>
            </div>
        </body>
    </html>
  • 相关阅读:
    mybatis的延时加载缓存机制
    mybatis03
    事务
    codeforces-200B
    codeforces-339B
    codeforces-492B
    codeforces-266B
    codeforces-110A
    codeforces-887B
    codeforces-69A
  • 原文地址:https://www.cnblogs.com/leigood/p/4922228.html
Copyright © 2011-2022 走看看