• Bootstrap-轮播图-No.3


    <!DOCTYPE html>
    <html lang="zh">
    <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>
        <link rel="stylesheet" type="text/css" href="../../css/bootstrap.css"/>
        <script src="../../js/jquery-1.11.2.min.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
    </head>
    <body>
        <!--
            作者:bilaisheng@163.com
            时间:2017-10-16
            描述:bootstrap插件 ,由别人定义好jquery插件技术进行开发,插件是没有办法仅通过CSS就能控制
            而是通过js/jquery 控制. 必须引入jquery/bootstrap.min.js
    
            增加轮播图正中间小圆点
            增加左右两侧箭头
            顺序: 小圆点>轮播图片>左右箭头
        -->
    
        <style type="text/css">
            .mt50{margin-top: 50px;}
            .carousel-inner >.item img{width: 100%;height: 300px;}
    
        </style>
        <div class="container mt50"><!--viewport视口 1170px-->
            <div class="carousel slide" data-ride="carousel" data-interval="1000">
    
                <!--轮播图正中间小圆点-->
                <ol class="carousel-indicators">
                    <li class="active"></li>
                    <li></li>
                    <li></li>
                </ol>
    
                <!--轮播图片-->
                <div class="carousel-inner">
                    <div class="item active">
                        <img src="http://img-cdn2.luoo.net/site/201710/59df32615f7cf.jpg"/>
                    </div>
                    <div class="item">
                        <img src="http://img-cdn2.luoo.net/site/201710/59db18dd28759.jpg"/>
                    </div>
                    <div class="item">
                        <img src="http://img-cdn2.luoo.net/site/201710/59ddf17c9ce1e.jpg"/>
                    </div>
                </div>
    
                <!--左右箭头-->
                <!--左侧-->
                <a href="" class="left carousel-control">
                    <span class="glyphicon glyphicon-chevron-left"></span>
                    <span class="sr-only">Previous</span>
                </a>
                <!--右侧-->
                <a href="" class="right carousel-control">
                    <span class="glyphicon glyphicon-chevron-right"></span>
                    <span class="sr-only">Next</span>
                </a>
            </div>
        </div>
    
    </body>
    </html>
  • 相关阅读:
    Higher-Order Functions and Lambdas
    dispatch_sync:As an optimization, this function invokes the block on the current thread when possible
    为什么使用dispatch_sync
    如何安全使用dispatch_sync
    dispatch_sync
    Dispatch Queues and Thread Safety
    高阶函数-参数与返回值
    In Swift, typedef is called typealias:
    偏函数应用(Partial Application)和函数柯里化(Currying)
    Centos下添加用户到用户组
  • 原文地址:https://www.cnblogs.com/bilaisheng/p/10210944.html
Copyright © 2020-2023  润新知