• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com专业计算机教程网站
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • html/xhtml
  • html5
  • CSS
  • XML/XSLT
  • Dreamweaver教程
  • Frontpage教程
  • 心得技巧
  • bootstrap
  • vue
  • AngularJS
  • HBuilder教程
  • css3
  • 浏览器兼容
  • div/css
  • 网页编辑器
  • axure
您的位置:首页 > 网页设计 >bootstrap > bootstrap实现每隔5秒自动轮播效果

bootstrap实现每隔5秒自动轮播效果

作者: 字体:[增加 减小] 来源:互联网 时间:2017-05-30

本文主要包含bootstrap实现轮播,bootstrap实现轮播图,bootstrap轮播效果,bootstrap轮播图,bootstrap轮播等相关知识,希望在学习及工作中可以帮助到您

本文实例为大家分享了bootstrap轮播的具体代码,供大家参考,具体内容如下

<!DOCTYPE html> 
<html> 
 <head> 
 <title>轮播</title> 
 <link rel="stylesheet" href="https://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css"> 
 <style> 
 #circleContent{ 
 width:150px; 
 height:150px; 
 } 
 </style> 
 <script src="https://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script> 
 <script src="https://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script> 
 <script> 
 $(document).ready(function(){ 
 $('#circleContent').carousel({interval:5000});//每隔5秒自动轮播 
 }); 
 </script> 
 </head> 
 <body> 
 <div id="circleContent" class="carousel slide"> 
 <ol class="carousel-indicators"> 
 <li data-target="#circleContent" data-slide-to="0" class="active"></li> 
 <li data-target="#circleContent" data-slide-to="1"></li> 
 <li data-target="#circleContent" data-slide-to="2"></li> 
 </ol> 
 <div class="carousel-inner"> 
 <div class="item active"> 
  <img src="images/circle1.png"> 
  <div class="carousel-caption">IMG1</div> 
 </div> 
 <div class="item"> 
  <img src="images/circle2.png"> 
  <div class="carousel-caption">IMG2</div> 
 </div> 
 <div class="item"> 
  <img src="images/circle3.png"> 
  <div class="carousel-caption">IMG3</div> 
 </div> 
 </div> 
 <a class="carousel-control left" href="#circleContent" data-slide="prevent">‹</a> 
 <a class="carousel-control right" href="#circleContent" data-slide="next">›</a> 
 </div> 
 </body> 
</html> 
</div>

如果大家还想深入学习,可以点击这里进行学习,再为大家附4个精彩的专题:

Bootstrap学习教程

Bootstrap实战教程

Bootstrap Table使用教程

Bootstrap插件使用教程

精彩专题分享:jQuery图片轮播 JavaScript图片轮播 Bootstrap图片轮播

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。

</div>

您可能想查找下面的文章:

  • 完美实现bootstrap分页查询
  • 基于Bootstrap实现图片轮播效果
  • 轻松实现Bootstrap图片轮播
  • 手机端实现Bootstrap简单图片轮播效果
  • bootstrap实现图片自动轮播
  • bootstrap实现每隔5秒自动轮播效果

相关文章

  • 2017-05-30Bootstrap table分页问题汇总
  • 2017-05-30JS组件Bootstrap Table使用实例分享
  • 2017-05-30jquery插件bootstrapValidator表单验证详解
  • 2017-05-30JS组件Bootstrap Table表格多行拖拽效果实现代码
  • 2017-05-30关于Bootstrap弹出框无法调用问题的解决办法
  • 2017-05-30bootstrap实现每隔5秒自动轮播效果
  • 2017-05-30轻松实现Bootstrap图片轮播
  • 2017-05-30全面解析多种Bootstrap图片轮播效果
  • 2017-05-30Bootstrap图片轮播组件Carousel使用方法详解
  • 2017-05-30Bootstrap+jfinal实现省市级联下拉菜单

文章分类

  • html/xhtml
  • html5
  • CSS
  • XML/XSLT
  • Dreamweaver教程
  • Frontpage教程
  • 心得技巧
  • bootstrap
  • vue
  • AngularJS
  • HBuilder教程
  • css3
  • 浏览器兼容
  • div/css
  • 网页编辑器
  • axure

最近更新的内容

    • Bootstrap每天必学之导航
    • Bootstrap3制作自己的导航栏
    • 完美实现bootstrap分页查询
    • Bootstrap导航栏各元素操作方法(表单、按钮、文本)
    • Bootstrap table分页问题汇总
    • Bootstrap每天必学之导航条
    • 非常酷炫的Bootstrap图片轮播动画
    • Bootstrap打造一个左侧折叠菜单的系统模板(二)
    • Bootstrap 下拉菜单(Dropdown)插件
    • Bootstrap导航条可点击和鼠标悬停显示下拉菜单

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有