基于bootstrap實(shí)現(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"> <!-- 圓點(diǎn)按鈕 --> <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> <!-- 輪播內(nèi)容 --> <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>無論是什么任務(wù),配備 Intel HD Graphics 5000 圖形處理器的第四代 Intel Core 處理器都能應(yīng)對自如。</p> <p> <a href="#" class="btn btn-lg btn-primary" role="button">點(diǎn)我下載</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 技術(shù),MacBook Air 令 Wi-Fi 速度超越極限。</p> <p> <a href="#" class="btn btn-lg btn-primary" role="button">點(diǎn)我下載</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實(shí)現(xiàn)廣告輪播帶圖片和文字效果,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時(shí)回復(fù)大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!
相關(guān)文章
Autocomplete Textbox Example javascript實(shí)現(xiàn)自動完成成功
Autocomplete Textbox Example javascript實(shí)現(xiàn)自動完成成功...2007-08-08詳談js對url進(jìn)行編碼和解碼(三種方式的區(qū)別)
下面小編就為大家?guī)硪黄斦刯s對url進(jìn)行編碼和解碼(三種方式的區(qū)別)。小編覺得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧2017-08-08使用TypeScript實(shí)現(xiàn)高效的異步隊(duì)列任務(wù)管理
在javaScript項(xiàng)目開發(fā)中,異步編程是不可或缺的一部分,從網(wǎng)絡(luò)請求到延時(shí)操作,異步操作使得我們能夠在等待某個(gè)任務(wù)完成時(shí)繼續(xù)執(zhí)行其他任務(wù),提高應(yīng)用的響應(yīng)性和性能,本文使用JavaScript實(shí)現(xiàn)一個(gè)異步隊(duì)列來優(yōu)雅地管理復(fù)雜的異步任務(wù)流,需要的朋友可以參考下2024-03-03通過location.replace禁止瀏覽器后退防止重復(fù)提交
如果用戶重復(fù)提交事件,然后又后退,這樣可能會對某些數(shù)據(jù)產(chǎn)生災(zāi)難性的問題。所以今天就向大家介紹一種通過location.replace禁止瀏覽器后退按鈕的方法2014-09-09原生js封裝二級城市下拉列表的實(shí)現(xiàn)代碼
下面小編就為大家?guī)硪黄鷍s封裝二級城市下拉列表的實(shí)現(xiàn)代碼。小編覺得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧2016-06-06