• jq轮播图插件—手写


    <!DOCTYPE html>
    <html lang="en">

    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
    * {
    padding: 0;
    margin: 0;
    }
    #box {
    1200px;
    margin: auto;
    }
    .CarFigure_container ul {
    list-style: none;
    }

    .CarFigure_container {
    position: relative;
    100%;
    }
    .CarFigure_outer {
    position: relative;
    100%;
    overflow: hidden;
    }
    .CarFigure_cont {
    position: relative;
    overflow: hidden;
    left: 0;
    transition: all 0.5s ease;
    }
    .CarFigure_cont li {
    float: left;
    box-sizing: border-box;
    }
    .CarFigure_cont li img {
    100%;
    }
    .CarFigure_pagation {
    100%;
    position: absolute;
    bottom: -40px;
    text-align: center;
    }
    .CarFigure_pagation_item.active {
    background: red!important;
    }
    .CarFigure_pagation .CarFigure_pagation_item {
    display: inline-block;
    10px;
    height: 10px;
    background: cadetblue;
    margin: 0 10px;
    border-radius: 100%;
    cursor: pointer;
    }
    .CarFigure_button .CarFigure_button_left,.CarFigure_button .CarFigure_button_right {
    position: absolute;
    40px;
    height: 40px;
    line-height: 40px;
    background: #000000;
    border-radius: 100%;
    overflow: hidden;
    top: 0;
    bottom: 0;
    margin: auto;
    color: #ffffff;
    text-align: center;
    font-size: 25px;
    cursor: pointer;

    }
    .CarFigure_button_left {
    left: -40px;
    }
    .CarFigure_button_right {
    right: -40px;
    }
    </style>
    </head>
    <body>
    <div id="box">
    <div class="CarFigure_container">
    <div class="CarFigure_outer">
    <ul class="CarFigure_cont">
    <li class="CarFigure_slider">
    <img src="test.jpg">
    </li>
    <li class="CarFigure_slider">
    <img src="test.jpg">
    </li>

    <li class="CarFigure_slider">
    <img src="test.jpg">
    </li>
    <li class="CarFigure_slider">
    <img src="test.jpg">
    </li>
    <li class="CarFigure_slider">
    <img src="test.jpg">
    </li>

    <li class="CarFigure_slider">
    <img src="test.jpg">
    </li>
    <li class="CarFigure_slider">
    <img src="test.jpg">
    </li>
    </ul>
    </div>
    <div class="CarFigure_button"></div>
    <div class="CarFigure_pagation"></div>
    </div>
    </div>
    </body>
    <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <script src="jquery.CarFigure.js"></script>
    <script>
    $(function (){
    var myCarFigure = new CarFigure('.CarFigure_container');
    myCarFigure.init({
    space : 20,
    size : 1
    });
    });
    </script>
    </html>


    插件地址:https://blog-static.cnblogs.com/files/iwzyuan/jquery.CarFigure.js

  • 相关阅读:
    “ODBC驱动程序不支持动态记录集”错误的解决
    Pro *C/C++学习笔记(一)
    探讨全局变量的析构顺序
    指针和数组关系初探
    (转)Visual C++开发工具与调试技巧整理
    对利用Session纪录datagrid模板列中CheckBox的状态的一点改进
    大学老师列传
    重读保尔的意义
    Rich Edit控件的使用
    C++程序员常用工具集
  • 原文地址:https://www.cnblogs.com/chailuG/p/9281648.html
Copyright © 2020-2023  润新知