关于bootstrap中tab的使用
2016-08-02 15:58
501 查看
一引入相关文件
1、bootstrapvoucherinstant.css
2、jquery-2.1.3.min.js
3、bootstrap.js
二、相应的jsp页面
[html]
view plain
copy
print?
<%@ 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
显示图如下:
一引入相关文件
1、bootstrapvoucherinstant.css
2、jquery-2.1.3.min.js
3、bootstrap.js
二、相应的jsp页面
[html]
view plain
copy
print?
<%@ 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>
<%@ 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
显示图如下:
相关文章推荐
- 关于bootstrap中tab的使用
- 关于bootstrap中tab的使用
- 关于使用bootstrap的tab选项卡时无法正常显示echarts图像的解决方案
- 关于Bootstrap 模态框的产生使用
- 关于Tabpanel中使用布局显示不正常问题
- 关于tabstrip和multipage的具体使用
- 关于使用bootstrap实现自动补全功能,本文以Grails框架为例
- 关于Twitter bootstrap的使用
- 使用bootstrap简单制作Tab切换页
- MFC中关于tab控件使用的一点心得
- 关于bootstrap的datepicker在meteor应用中的使用(不包含bootstrap框架)
- 关于VS2005中TabControl的使用!
- 关于bootstrap小图标的使用
- 关于bootstrap弹出二级对话框的使用
- # 关于 \kartik\select2\Select2 在 Bootstrap 模态框内不能使用智能搜索的问题
- 关于Html中的title属性内容换行,以及Bootstrap的tooltip的使用
- JQuery 结合 Bootstrap 使用Tab
- 关于源代码中缩进是否使用tab问题的心得
- 关于SCREEN中tabstrip的使用
- [转] vim 中关于 tab 的使用技巧