//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 'account.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">
<script src="competition/statistics.js"></script>
<style>
.tb1_table{
table-layout: fixed;
border-collapse: collapse;
}
.tb1_table thead {
background: #EFAD4D;
width:100%;
}
.dv_table{
overflow: auto;
}
.tb2_table td {
text-align: left;
width: 200px;
}
</style>
</head>
<body>
<div class="container-fluid right">
<div class="row">
<div class="col-md-12">
<ul class="breadcrumb">
<li><a href="#" id="title"></a></li>
<li class="active" id="item"></li>
</ul>
</div>
</div>
<hr>
<div class="row">
<div class="col-md-12">
<div class="well well-sm">
<form class="form-horizontal" role="form">
<div class="form-group">
<label class="col-md-2 control-label">开始日期</label>
<div class="col-md-2">
<input class="form-control" type="date" id="id_beginDate"/>
</div>
<label class="col-md-2 control-label">结束日期</label>
<div class="col-md-2">
<input class="form-control" type="date" id="id_endDate"/>
</div>
<div class="col-md-2">
<button class="btn btn-default">查询</button>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<table class="tb1_table">
<thead>
<tr>
<th>Col 1</th>
<th>Col 2</th>
<th>Col 3</th>
<th>Col 4</th>
<th>Col 5</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="dv_table">
<table class="tb2_table table table-striped table-hover table-condensed">
<tbody>
<tr>
<td>row 1-1</td>
<td>row 1-2</td>
<td>row 1-3</td>
<td>row 1-4</td>
<td>row 1-5</td>
</tr>
<tr>
<td>row 2-1</td>
<td>row 2-2</td>
<td>row 2-3</td>
<td>row 2-4</td>
<td>row 2-5</td>
</tr>
<tr>
<td>row 3-1</td>
<td>row 3-2</td>
<td>row 3-3</td>
<td>row 3-4</td>
<td>row 3-5</td>
</tr>
<tr>
<td>row 4-1</td>
<td>row 4-2</td>
<td>row 4-3</td>
<td>row 4-4</td>
<td>row 4-5</td>
</tr>
<tr>
<td>row 5-1</td>
<td>row 5-2</td>
<td>row 5-3</td>
<td>row 5-4</td>
<td>row 5-5</td>
</tr>
<tr>
<td>row 6-1</td>
<td>row 6-2</td>
<td>row 6-3</td>
<td>row 6-4</td>
<td>row 6-5</td>
</tr>
<tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr>
<tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr> <tr>
<td>row 7-1</td>
<td>row 7-2</td>
<td>row 7-3</td>
<td>row 7-4</td>
<td>row 7-5</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
//js
$(function(){
Start();
function Start()
{
InitInterface();
}
function InitInterface()
{
var w = $("#right").width() - 20;
var h = $("#right").height() - 400;
$(".tb1_table").css("width",w);
$(".dv_table").css("width",w);
$(".dv_table").css("height",h);
}
});
网友评论