轮播

作者: 饥人谷_wuwei | 来源:发表于2017-11-06 16:46 被阅读0次

    题目1: 轮播的实现原理是怎样的?如果让你来实现,你会抽象出哪些函数(or接口)供使用?(比如 play())

    题目2: 实现视频中的左右滚动无限循环轮播效果

    <!DOCTYPE html>
    <html lang='zh-cn'>
    
    <head>
        <meta charset="utf-8">
        <title>无限轮播</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/1.9.1/jquery.min.js"></script>
        <style type="text/css">
            ul,
            li{
                margin:0;
                padding:0;
                list-style: none;
            }
            a{
                text-decoration: none;
            }
        </style>
    </head>
    <body>
        <ul class = 'lunbo'>
            <li><a href="">![](https://img.haomeiwen.com/i2924168/63ab80e2cf7ddb52?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)</a></li>
            <li><a href="">![](https://img.haomeiwen.com/i2924168/7381354e358b0760?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)</a></li>
            <li><a href="">![](https://img.haomeiwen.com/i2924168/1a92fdf2da1bd34a?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)</a></li>
            <li><a href="">![](https://img.haomeiwen.com/i2924168/aad9cb34bee4cd50?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)</a></li>
        </ul>   
        <a class="next" href="">></a>   
        <a  class='pre' href=""><</a>
        <ul class='bullet'>
            <li class='active'></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>
    </body>
    
    </html>
    

    题目3: 实现一个渐变轮播效果, 效果范例492

    相关文章

      网友评论

          本文标题:轮播

          本文链接:https://www.haomeiwen.com/subject/gtmlmxtx.html