基於bootstrap的輪播廣告頁,帶圖片和文字,

來源:互聯網
上載者:User

基於bootstrap的輪播廣告頁,帶圖片和文字,

 1 <!DOCTYPE html> 2 <html lang="zh-cn"> 3 <head> 4     <meta charset="utf-8"> 5     <meta http-equiv="X-UA-Compatible" content="IE=edge"> 6     <meta name="viewport" content="width=device-width, initial-scale=1"> 7     <title>基於bootstrap的輪播廣告頁,帶圖片和文字</title> 8     <link rel="stylesheet" href=" //netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> 9     <style>10         .carousel {11             height: 500px;12         }13         .carousel .item {14             height: 500px;15         }16         .carousel .item img {17             width: 100%;18         }19     </style>20 </head>21 22 <body>23     <!-- 輪播廣告 -->24     <div id="LBbox" class="carousel slide" data-ride="carousel">25         <!-- 圓點按鈕 -->26         <ol class="carousel-indicators">27           <li data-target="#LBbox" data-slide-to="0" class="active"></li>28           <li data-target="#LBbox" data-slide-to="1"></li>29         </ol>30         <!-- 輪播內容 -->31         <div class="carousel-inner" role="listbox">32           <div class="item active">33             <img src="http://img.mukewang.com/5412ad7c0001d2eb10880541.jpg" alt="1 slide">34             <div class="carousel-caption">35               <h1>第四代 Intel Core 處理器</h1>36               <p>無論是什麼任務,配備 Intel HD Graphics 5000 圖形處理器的第四代 Intel Core 處理器都能應對自如。</p>37               <p>38                 <a href="#" class="btn btn-lg btn-primary" role="button">點我下載</a>39               </p>40             </div>41           </div>42           <div class="item">43             <img src="http://img.mukewang.com/5412ae5c0001653b12800644.jpg" alt="2 slide">44             <div class="carousel-caption">45               <h1>MacBook Air</h1>46               <p>有了新一代 802.11ac 技術,MacBook Air 令 Wi-Fi 速度超越極限。</p>47               <p>48                 <a href="#" class="btn btn-lg btn-primary" role="button">點我下載</a>49               </p>50             </div>51           </div>52         </div>53         <!-- 左按鈕 -->54         <a href="#LBbox" class="left carousel-control" role="button" data-slide="prev">55           <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>56           <span class="sr-only">上一頁</span>57         </a>58         <!-- 右按鈕 -->59         <a href="#LBbox" class="right carousel-control" role="button" data-slide="next">60           <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>61           <span class="sr-only">下一頁</span>62         </a>63     </div>64     65     66     <script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>67     <script src="http://cdn.bootcss.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>68 </body>69 </html>

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.