Bootstrap创建垂直滚动监听
来源:互联网 发布:中国游戏中心 mac 编辑:程序博客网 时间:2024/06/11 10:01
<!DOCTYPE html><html><head><meta charset="utf-8"><title>Bootstrap Example</title><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css"> <!-- 可以用下载到本地的css文件 --><script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script> <!-- 可以用下载到本地的js文件 --><script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script> <!-- 可以用下载到本地的js文件 --><style>body {position: relative; }#section1 {padding-top:50px;height:500px;color: #fff; background-color: #1E88E5;}#section2 {padding-top:50px;height:500px;color: #fff; background-color: #673ab7;}#section3 {padding-top:50px;height:500px;color: #fff; background-color: #ff9800;}#section41 {padding-top:50px;height:500px;color: #fff; background-color: #00bcd4;}#section42 {padding-top:50px;height:500px;color: #fff; background-color: #009688;}</style></head><body data-spy="scroll" data-target=".navbar" data-offset="50"><nav class="navbar navbar-inverse navbar-fixed-top"><div class="container-fluid"><div class="navbar-header"><button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span> </button><a class="navbar-brand" href="#">WebSiteName</a></div><div><div class="collapse navbar-collapse" id="myNavbar"><ul class="nav navbar-nav"><li><a href="#section1">Section 1</a></li><li><a href="#section2">Section 2</a></li><li><a href="#section3">Section 3</a></li><li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Section 4 <span class="caret"></span></a><ul class="dropdown-menu"><li><a href="#section41">Section 4-1</a></li><li><a href="#section42">Section 4-2</a></li></ul></li></ul></div></div></div></nav> <div id="section1" class="container-fluid"><h1>Section 1</h1><p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p><p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p></div><div id="section2" class="container-fluid"><h1>Section 2</h1><p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p><p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p></div><div id="section3" class="container-fluid"><h1>Section 3</h1><p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p><p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p></div><div id="section41" class="container-fluid"><h1>Section 4 Submenu 1</h1><p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p><p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p></div><div id="section42" class="container-fluid"><h1>Section 4 Submenu 2</h1><p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p><p>Try to scroll this section and look at the navigation bar while scrolling! Try to scroll this section and look at the navigation bar while scrolling!</p></div></body></html>
转载自:
http://www.runoob.com/try/try2.php?filename=trybs_scrollspy&basepath=0
阅读全文
0 0
- Bootstrap创建垂直滚动监听
- bootstrap滚动监听
- bootstrap滚动监听示例
- Bootstrap滚动监听插件
- BootStrap 滚动监听插件
- bootstrap监听滚动
- bootstrap滚动监听
- Bootstrap中的滚动监听
- Bootstrap Modal 垂直方向加滚动条
- Bootstrap Modal 垂直方向加滚动条
- android 监听listview垂直滚动距离
- 实现TextView垂直滚动以及监听
- bootstrap(下拉菜单与滚动监听)
- Bootstrap 滚动监听(Scrollspy)插件
- 滚动监听,bootstrap头文件引用方式
- bootstrap学习32---滚动监听scrollspy.js
- bootstrap下拉菜单和滚动监听插件
- 4.4Bootstrap学习js插件篇之滚动监听
- Java中hashCode的作用
- 微生物测序样本准备方法总结
- 新手学习-Tcp的服务端与客户端之间进行通讯
- DataNode启动不成功——java.net.BindException: Port in use: localhost:0 Caused by: java.
- 空战的趋势:空中优势的未来含义
- Bootstrap创建垂直滚动监听
- django 配置163 qq 邮箱发送邮件
- 个人学习总结的部分java小知识与面试题(一)
- 《linux命令行与shell脚本编程大全》第三版
- SVD 奇异值分解
- 设计模式,共有17种,C++实现
- web应用四种属性范围
- sqluldr2如何使用
- Java集合(2)HashSet