Bootstrap_插件_轮播图与案例_黑马旅游网_分析
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">¥899</font> </td> <td> <img src="img/jiangxuan_1.jpg"> <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p> <font color = "red">¥899</font> </td> <td> <img src = "img/jiangxuan_1.jpg"> <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p> <font color = "red">¥899</font> </td> <td> <img src = "img/jiangxuan_1.jpg"> <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p> <font color = "red">¥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">¥ 699</font> </td> <td> <img src = "img/jiangxuan_2.jpg" alt = ""> <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p> <font color = "red">¥ 699</font> </td> <td> <img src = "img/jiangxuan_2.jpg" alt = ""> <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p> <font color = "red">¥ 699</font> </td> </tr> <tr> <td> <img src = "img/jiangxuan_2.jpg" alt = ""> <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p> <font color="red">¥ 699</font> </td> <td> <img src = "img/jiangxuan_2.jpg" alt = ""> <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p> <font color="red">¥ 699</font> </td> <td> <img src = "img/jiangxuan_2.jpg" alt = ""> <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p> <font color = "red">¥ 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">¥ 699</font> </td> <td> <img src = "img/jiangxuan_3.jpg" alt = ""> <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p> <font color = "red">¥ 699</font> </td> <td> <img src="img/jiangxuan_3.jpg" alt = ""> <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p> <font color = "red">¥ 699</font> </td> </tr> <tr> <td> <img src = "img/jiangxuan_3.jpg" alt = ""> <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p> <font color = "red">¥ 699</font> </td> <td> <img src = "img/jiangxuan_3.jpg" alt = ""> <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p> <font color = "red">¥ 699</font> </td> <td> <img src = "img/jiangxuan_3.jpg" alt = ""> <p>上海飞三亚五天4晚自由行(春节销售+亲子+蜜月+自由行)</p> <font color = "red">¥ 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©, 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">
<!-- 上述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>
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)