关于bootstrap中tab的使用
来源:互联网 发布:龙誉移动大数据平台 编辑:程序博客网 时间:2024/05/22 08:19
一引入相关文件
1、bootstrapvoucherinstant.css
2、jquery-2.1.3.min.js
3、bootstrap.js
二、相应的jsp页面
- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <base href="<%=basePath%>">
- <title>My JSP 'bootstrap.jsp' starting page</title>
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="cache-control" content="no-cache">
- <meta http-equiv="expires" content="0">
- <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
- <meta http-equiv="description" content="This is my page">
- <link rel="stylesheet" type="text/css" href="bootstrap/bootstrapvoucherinstant.css"/>
- <script type="text/javascript" src="bootstrap/jquery-2.1.3.min.js"></script>
- <script type="text/javascript" src="bootstrap/bootstrap.js"></script>
- </head>
- <body>
- <div class="body_div">
- <div class="navigation">
- 标题部分
- </div>
- <ul id="myShopTab" class="nav nav-tabs">
- <li class="active">
- <a href="#tab1" data-toggle="tab">群组记录</a>
- </li>
- <li>
- <a href="#tab2" data-toggle="tab">客服记录</a>
- </li>
- </ul>
- <div id="myTabContent" class="tab-content">
- <div class="tab-pane fade in active" id="tab1"></div>
- <div class="tab-pane fade" id="tab2">
- <iframe src="index.jsp" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" width="100%" height="450px;"></iframe>
- </div>
- </div>
- </div>
- </body>
- </html>
部署好工程在地址栏测一下:http://localhost:8080/Mytest/bootstrap.jsp
显示图如下:
0 0
- 关于bootstrap中tab的使用
- 关于bootstrap中tab的使用
- 关于bootstrap中tab的使用
- 使用Bootstrap tab页切换的使用
- bootstrap中tab的跳转问题
- bootstrap 之tab页面的使用
- 改造BOOTSTRAP的TAB
- 关于源代码中缩进是否使用tab问题的心得
- MFC中关于tab控件使用的一点心得
- $().tab() bootStrap中Tab页签切换
- 关于Bootstrap中tooltip弹出提示的使用
- 从Bootstrap中分离出tab组件的样式
- Echarts 图表放到bootstrap的tab-panel中不加载
- 浅析Bootstrap中Tab(标签页)的使用方法
- Echarts 图表放到bootstrap的tab-panel中不加载
- 关于Twitter bootstrap的使用
- Android中Tab的使用
- bootstrap的tab选项卡
- 关于应用安装的系统广播的注册
- .net线程安全
- Exception raised during rendering:com/android/util/PropertiesMap解决方法
- 统计学习方法第4,5章笔记
- Android ImageView的scaleType属性解释
- 关于bootstrap中tab的使用
- nyoj 97 兄弟旅游问题
- GridView ScrollView ViewPager
- 使用MyBatis-Generator自动创建代码(参考+修改)
- 实验八:VLAN的配置和单臂路由
- Visual Studio 2012 - Visual C++ MFC 类
- linux查看网卡速度和模式调整
- Oracle基本的SQL语句
- playframework1.2.x博客教程(一)-创建项目