Bootstrap_插件_轮播图

      

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
    <title>Bootstrap HelloWorld</title>

    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">


    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery,所以必须放在前边) -->
    <script src="js/jquery-3.2.1.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="js/bootstrap.min.js"></script>
</head>
<body>
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
    <!-- Indicators -->
    <ol class="carousel-indicators">
        <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
        <li data-target="#carousel-example-generic" data-slide-to="1"></li>
        <li data-target="#carousel-example-generic" data-slide-to="2"></li>
    </ol>

    <!-- Wrapper for slides -->
    <div class="carousel-inner" role="listbox">
        <div class="item active">
            <img src="img/banner_1.jpg" alt="...">
        </div>
        <div class="item">
            <img src="img/banner_2.jpg" alt="...">
        </div>
        <div class="item">
            <img src="img/banner_3.jpg" alt="...">
        </div>

    </div>

    <!-- Controls -->
    <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
    </a>
</div>



</body>
</html>

 

 

案例_黑马旅游网_分析

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>综合案例</title>
</head>
<body>
<!--采用table来完成布局-->
<!--最外层table,用于整个页面的布局-->
<!--table 表格标签-->
<table width="100%" align="center">
   <!--第一行-->
    <tr>
        <td>
            <img src = "img/top_banner.jpg" width="100%" alt="" >
        </td>
    </tr>
    <!--第二行-->
    <tr>
        <td>
            <table width = "100%" align = "center">
                <tr>
                    <td>
                        <img src = "img/logo.jpg" alt = "">

                    </td>
                    
                    <td>
                        <img src = "img/search.png" alt = "" align = "center">
                    </td>
                    
                    <td>
                        <img src = "img/hotel_tel.png">
                    </td>
                </tr>
            </table>
               
        </td>
    </tr>
    <!--第三行-->
    <tr>
        <td>
            <table width = "100%" align = "center">
                <tr bgcolor = "#ffd700" align = "center" height = "45">
                    <td>
                        <a href = "http://www.baidu.com">首页</a>
                    </td>
                    <td>
                        门票
                    </td>

                    <td>
                       酒店
                    </td>

                    <td>
                       香港车票
                    </td>

                    <td>
                       出境游
                    </td>

                    <td>
                        国内游
                    </td>

                    <td>
                       港澳游
                    </td>

                    <td>
                        抱团定制
                    </td>

                    <td>
                        全球自由行
                    </td>
                    <td>
                        收藏排行榜
                    </td>
                </tr>

            </table>
        </td>
    </tr>
    <!--第四行-->
   <tr>
       <td>
           <img src = "img/banner_3.jpg" width = "100%">
       </td>
   </tr>
    <!--第五行-->
    <tr>
        <td>
            <img src = "img/icon_5.jpg">
            黑马精选
            <hr color = "yellow">
        </td>
    </tr>
    <!--第6行-->
   <tr>
       <ta>
           <table width = "95%" align = "center">
               <tr>
                   <td>
                       <img src = "img/jiangxuan_1.jpg">
                       <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p>
                       <font color = "red">&yen;899</font>
                   </td>
                   <td>
                       <img src="img/jiangxuan_1.jpg">
                       <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p>
                       <font color = "red">&yen;899</font>
                   </td>
                   <td>
                       <img src = "img/jiangxuan_1.jpg">
                       <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p>
                       <font color = "red">&yen;899</font>
                   </td>
                   <td>
                       <img src = "img/jiangxuan_1.jpg">
                       <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p>
                       <font color = "red">&yen;899</font>
                   </td>
               </tr>
           </table>
       </ta>
   </tr>
    <!--国内游-->
    <tr>
        <td>
            <img src = "img/icon_6.jpg">
            国内游
            <hr color = "yellow" >
        </td>
    </tr>
    <!--第八行-->
    <tr>
        <td>
            <table align = "center" width = "95%">
                <tr>
                    <td rowspan = "2">
                        <img src = "img/guonei_1.jpg" alt = "">
                    </td>

                    <td>

                        <img src = "img/jiangxuan_2.jpg" alt = "" height = "100%">
                        <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p>
                        <font color = "red">&yen; 699</font>
                    </td>

                    <td>

                        <img src = "img/jiangxuan_2.jpg" alt = "">
                        <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p>
                        <font color = "red">&yen; 699</font>
                    </td>

                    <td>

                        <img src = "img/jiangxuan_2.jpg" alt = "">
                        <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p>
                        <font color = "red">&yen; 699</font>
                    </td>
                </tr>

                <tr>
                    <td>

                        <img src = "img/jiangxuan_2.jpg" alt = "">
                        <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p>
                        <font color="red">&yen; 699</font>
                    </td>

                    <td>

                        <img src = "img/jiangxuan_2.jpg" alt = "">
                        <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p>
                        <font color="red">&yen; 699</font>
                    </td>

                    <td>

                        <img src = "img/jiangxuan_2.jpg" alt = "">
                        <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p>
                        <font color = "red">&yen; 699</font>
                    </td>

                </tr>
            </table>
        </td>
    </tr>
    <!--第9行-->
    <tr>
        <ta>
            <img src = "img/icon_7.jpg">
            境外游
            <hr color = "yellow" >
        </ta>
    </tr>
    <!--第10行-->
    <tr>
        <td>
            <table align = "center" width = "95%">
                <tr>
                    <td rowspan = "2">
                        <img src = "img/jiangwai_1.jpg">
                    </td>
                    <td>

                        <img src = "img/jiangxuan_3.jpg" alt = "" height = "100%">
                        <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p>
                        <font color = "red">&yen; 699</font>
                    </td>

                    <td>

                        <img src = "img/jiangxuan_3.jpg" alt = "">
                        <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p>
                        <font color = "red">&yen; 699</font>
                    </td>

                    <td>

                        <img src="img/jiangxuan_3.jpg" alt = "">
                        <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p>
                        <font color = "red">&yen; 699</font>
                    </td>
                </tr>

                <tr>
                    <td>

                        <img src = "img/jiangxuan_3.jpg" alt = "">
                        <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p>
                        <font color = "red">&yen; 699</font>
                    </td>

                    <td>

                        <img src = "img/jiangxuan_3.jpg" alt = "">
                        <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p>
                        <font color = "red">&yen; 699</font>
                    </td>

                    <td>

                        <img src = "img/jiangxuan_3.jpg" alt = "">
                        <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p>
                        <font color = "red">&yen; 699</font>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <!--第11行-->
    <tr>
        <td>
            <img src = "img/footer_service.png" alt = "" width = "100%">
        </td>
    </tr>
    <!-- 第12行 -->
    <tr>
        <td >
            <table align = "center" bgcolor = "#ffd700"  height = "100%" bgcolor = "#ffd700" size = "2">
               <tr>
                   <td>
                       江苏传智播客教育科技股份有限公司
                       版权所有Copyright 2006-2018&copy;, All Rights Reserved 苏ICP备16007882
                   </td>
               </tr>
            </table>
        </td>
    </tr>
</table>

</body>
</html>

 

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
<title>Bootstrap HelloWorld</title>

<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">


<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery,所以必须放在前边) -->
<script src="js/jquery-3.2.1.min.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
</ol>

<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="img/banner_1.jpg" alt="...">
</div>
<div class="item">
<img src="img/banner_2.jpg" alt="...">
</div>
<div class="item">
<img src="img/banner_3.jpg" alt="...">
</div>

</div>

<!-- Controls -->
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>



</body>
</html>

原文地址:http://www.cnblogs.com/x3449/p/16929916.html

1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长! 2. 分享目的仅供大家学习和交流,请务用于商业用途! 3. 如果你也有好源码或者教程,可以到用户中心发布,分享有积分奖励和额外收入! 4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解! 5. 如有链接无法下载、失效或广告,请联系管理员处理! 6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需! 7. 如遇到加密压缩包,默认解压密码为"gltf",如遇到无法解压的请联系管理员! 8. 因为资源和程序源码均为可复制品,所以不支持任何理由的退款兑现,请斟酌后支付下载 声明:如果标题没有注明"已测试"或者"测试可用"等字样的资源源码均未经过站长测试.特别注意没有标注的源码不保证任何可用性