使用bootstrap做出响应式的轮播图 粘贴即用

 <!--轮播图-->
 <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
        <!-- 指示器 -->
        <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>
        <!-- 轮播图片及说明文字 -->
        <div class="carousel-inner" role="listbox">
          <div class="item active">
            <a href="#" class="pc_imgBox hidden-xs pc_hight" style="background-image: url('images/v_3.jpg')"></a>
            <a href="#" class="m_imgBox hidden-lg hidden-md hidden-sm"><img src="images/v_3.jpg" alt=""></a>
          </div>
          <div class="item ">
            <a href="#" class="pc_imgBox hidden-xs pc_hight" style="background-image: url('images/v_6.jpg')"></a>
            <a href="#" class="m_imgBox hidden-lg hidden-md hidden-sm"><img src="images/v_6.jpg" alt=""></a>
          </div>
          <div class="item ">
            <a href="#" class="pc_imgBox hidden-xs pc_hight" style="background-image: url('images/v_5.jpg')"></a>
            <a href="#" class="m_imgBox hidden-lg hidden-md hidden-sm"><img src="images/v_5.jpg" alt=""></a>
          </div>
        </div>
        <!-- 控制按钮:左右切换 -->
        <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
          <span class="glyphicon glyphicon-chevron-left"></span>
        </a>
        <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
          <span class="glyphicon glyphicon-chevron-right"></span>
        </a>
        </div>
		
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值