基于bootstrap實現(xiàn)廣告輪播帶圖片和文字效果
來源:易賢網(wǎng) 閱讀:1854 次 日期:2016-07-29 14:33:18
溫馨提示:易賢網(wǎng)小編為您整理了“基于bootstrap實現(xiàn)廣告輪播帶圖片和文字效果”,方便廣大網(wǎng)友查閱!

這篇文章主要介紹了基于bootstrap實現(xiàn)廣告輪播帶圖片和文字效果,效果非常棒,需要的朋友可以參考下

代碼如下所示:

<!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">

<title>基于bootstrap的輪播廣告頁,帶圖片和文字</title>

<link rel="stylesheet" href=" //netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">

<style>

.carousel {

height: 500px;

}

.carousel .item {

height: 500px;

}

.carousel .item img {

width: 100%;

}

</style>

</head>

<body>

<!-- 輪播廣告 -->

<div id="LBbox" class="carousel slide" data-ride="carousel">

<!-- 圓點按鈕 -->

<ol class="carousel-indicators">

<li data-target="#LBbox" data-slide-to="0" class="active"></li>

<li data-target="#LBbox" data-slide-to="1"></li>

</ol>

<!-- 輪播內容 -->

<div class="carousel-inner" role="listbox">

<div class="item active">

<img src="http://img.mukewang.com/5412ad7c0001d2eb10880541.jpg" alt="1 slide">

<div class="carousel-caption">

<h1>第四代 Intel Core 處理器</h1>

<p>無論是什么任務,配備 Intel HD Graphics 5000 圖形處理器的第四代 Intel Core 處理器都能應對自如。</p>

<p>

<a href="#" class="btn btn-lg btn-primary" role="button">點我下載</a>

</p>

</div>

</div>

<div class="item">

<img src="http://img.mukewang.com/5412ae5c0001653b12800644.jpg" alt="2 slide">

<div class="carousel-caption">

<h1>MacBook Air</h1>

<p>有了新一代 802.11ac 技術,MacBook Air 令 Wi-Fi 速度超越極限。</p>

<p>

<a href="#" class="btn btn-lg btn-primary" role="button">點我下載</a>

</p>

</div>

</div>

</div>

<!-- 左按鈕 -->

<a href="#LBbox" class="left carousel-control" role="button" data-slide="prev">

<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>

<span class="sr-only">上一頁</span>

</a>

<!-- 右按鈕 -->

<a href="#LBbox" class="right carousel-control" role="button" data-slide="next">

<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>

<span class="sr-only">下一頁</span>

</a>

</div>

<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>

<script src="http://cdn.bootcss.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>

</body>

</html>

以上所述是小編給大家介紹的基于bootstrap實現(xiàn)廣告輪播帶圖片和文字效果,希望對大家有所幫助

更多信息請查看網(wǎng)絡編程
易賢網(wǎng)手機網(wǎng)站地址:基于bootstrap實現(xiàn)廣告輪播帶圖片和文字效果
關于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 加入群交流 | 手機站點 | 投訴建議
工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網(wǎng)安備53010202001879號 人力資源服務許可證:(云)人服證字(2023)第0102001523號
聯(lián)系電話:0871-65317125(9:00—18:00) 獲取招聘考試信息及咨詢關注公眾號:hfpxwx
咨詢QQ:526150442(9:00—18:00)版權所有:易賢網(wǎng)