简单的html表格,做后台的幸福了
来源:互联网 发布:pc蛋蛋预测源码 编辑:程序博客网 时间:2024/06/05 03:23
<html>
<head>
<title>一款经典实用的表格效果</title>
<meta http-equiv="content-Type" content="text/html;charset=gb2312">
<style type="text/css">
*{font-family:Tahoma, Arial, Helvetica, Sans-serif,"宋体";}
table{
width:100%;
margin:0px auto;
font:Georgia 11px;
font-size:12px;
color:#333333;
text-align:center;
border-collapse:collapse;/*细线表格代码*/
}
table td{
border:1px solid #999;/*细线表格线条颜色*/
height:22px;
}
caption{text-align:center;font-size:12px;font-weight:bold;margin:0 auto;}
tr.t1 td {background-color:#fff;}
tr.t2 td {background-color:#eee;}
tr.t3 td {background-color:#ccc;}
th,tfoot tr td{font-weight:bold;text-align:center;background:#c5c5c5;}
th{line-height:30px;height:30px;}
tfoot tr td{background:#fff;line-height:26px;height:26px;}
thead{border:1px solid #999;}
thead tr td{text-align:center;}
#page{text-align:center;float:right;}
#page a,#page a:visited{width:60px;height:22px;line-height:22px;border:1px black solid;display:block;float:left;margin:0 3px;background:#c9c9c9;
text-decoration:none;}
#page a:hover{background:#c1c1c1;text-decoration:none;}
.grayr {padding:2px;font-size:11px;background:#fff;float:right;}
.grayr a {padding:2px 5px;margin:2px;color:#000;text-decoration:none;;border:1px #c0c0c0 solid;}
.grayr a:hover {color:#000;border:1px orange solid;}
.grayr a:active {color:#000;background: #99ffff}
.grayr span.current {padding:2px 5px;font-weight:bold; margin:2px; color: #303030;background:#fff;border:1px orange solid;}
.grayr span.disabled {padding:2px 5px;margin:2px;color:#797979;background: #c1c1c1;border:1px #c1c1c1 solid;}
</style>
<script type="text/javascript">
<!--
function selectAll()
{
if(this.checked==true) {
checkAll('test');
}
else {
clearAll('test');
}
}
function checkAll(name)
{
var el = document.getElementsByTagName('input');
var len = el.length;
for(var i=0; i<len; i++)
{
if((el[i].type=="checkbox") && (el[i].name==name))
{
el[i].checked = true;
}
}
}
function clearAll(name)
{
var el = document.getElementsByTagName('input');
var len = el.length;
for(var i=0; i<len; i++)
{
if((el[i].type=="checkbox") && (el[i].name==name))
{
el[i].checked = false;
}
}
}
-->
</script>
</head>
<body>
<table>
<caption>
<table>
<tr><td>1212</td></tr>
</table>
</caption>
<thead>
<tr>
<th>
<input onClick="if(this.checked==true) { checkAll('test'); } else { clearAll('test'); }" type="checkbox" value="" name="test" title="全选/取消"/>
</th>
<th>昵称</th>
<th>性别</th>
<th>年龄</th>
<th>籍贯</th>
<th>电话</th>
<th>邮箱</th>
<th>QQ</th>
<th>主页</th>
</tr>
</thead>
<tbody id="tab">
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>
<input onClick="if(this.checked==true) { checkAll('test'); } else { clearAll('test'); }" type="checkbox" value="" name="test" title="全选/取消"/>
</td>
<td colspan="8">
<div class="grayr"><span class="disabled"> < </span><span class="current">1</span><a href="#?page=2">2</a><a href="#?page=3">3</a><a href="#?page=4">4</a><a href="#?page=5">5</a><a href="#?page=6">6</a><a href="#?page=7">7</a>...<a href="#?page=199">199</a><a href="#?page=200">200</a><a href="#?page=2"> > </a></div>
</td>
</tr>
</tfoot>
</table>
<a href="http://www.865171.cn">免费模板网</a>
<script type="text/javascript">
<!--
var Ptr=document.getElementById("tab").getElementsByTagName("tr");
function $() {
for (i=1;i<Ptr.length+1;i++) {
Ptr[i-1].style.backgroundColor = (i%2>0)?"#fff":"#eee";
}
}
window.onload=$;
for(var i=0;i<Ptr.length;i++) {
Ptr[i].onmouseover=function(){
this.tmpClass=this.className;
this.style.backgroundColor = "#ccc";
};
Ptr[i].onmouseout=function(){
for (i=1;i<Ptr.length+1;i++) {
Ptr[i-1].style.backgroundColor = (i%2>0)?"#eee":"#fff";
}
}
}
//-->
</script>
</body>
</html>
<head>
<title>一款经典实用的表格效果</title>
<meta http-equiv="content-Type" content="text/html;charset=gb2312">
<style type="text/css">
*{font-family:Tahoma, Arial, Helvetica, Sans-serif,"宋体";}
table{
width:100%;
margin:0px auto;
font:Georgia 11px;
font-size:12px;
color:#333333;
text-align:center;
border-collapse:collapse;/*细线表格代码*/
}
table td{
border:1px solid #999;/*细线表格线条颜色*/
height:22px;
}
caption{text-align:center;font-size:12px;font-weight:bold;margin:0 auto;}
tr.t1 td {background-color:#fff;}
tr.t2 td {background-color:#eee;}
tr.t3 td {background-color:#ccc;}
th,tfoot tr td{font-weight:bold;text-align:center;background:#c5c5c5;}
th{line-height:30px;height:30px;}
tfoot tr td{background:#fff;line-height:26px;height:26px;}
thead{border:1px solid #999;}
thead tr td{text-align:center;}
#page{text-align:center;float:right;}
#page a,#page a:visited{width:60px;height:22px;line-height:22px;border:1px black solid;display:block;float:left;margin:0 3px;background:#c9c9c9;
text-decoration:none;}
#page a:hover{background:#c1c1c1;text-decoration:none;}
.grayr {padding:2px;font-size:11px;background:#fff;float:right;}
.grayr a {padding:2px 5px;margin:2px;color:#000;text-decoration:none;;border:1px #c0c0c0 solid;}
.grayr a:hover {color:#000;border:1px orange solid;}
.grayr a:active {color:#000;background: #99ffff}
.grayr span.current {padding:2px 5px;font-weight:bold; margin:2px; color: #303030;background:#fff;border:1px orange solid;}
.grayr span.disabled {padding:2px 5px;margin:2px;color:#797979;background: #c1c1c1;border:1px #c1c1c1 solid;}
</style>
<script type="text/javascript">
<!--
function selectAll()
{
if(this.checked==true) {
checkAll('test');
}
else {
clearAll('test');
}
}
function checkAll(name)
{
var el = document.getElementsByTagName('input');
var len = el.length;
for(var i=0; i<len; i++)
{
if((el[i].type=="checkbox") && (el[i].name==name))
{
el[i].checked = true;
}
}
}
function clearAll(name)
{
var el = document.getElementsByTagName('input');
var len = el.length;
for(var i=0; i<len; i++)
{
if((el[i].type=="checkbox") && (el[i].name==name))
{
el[i].checked = false;
}
}
}
-->
</script>
</head>
<body>
<table>
<caption>
<table>
<tr><td>1212</td></tr>
</table>
</caption>
<thead>
<tr>
<th>
<input onClick="if(this.checked==true) { checkAll('test'); } else { clearAll('test'); }" type="checkbox" value="" name="test" title="全选/取消"/>
</th>
<th>昵称</th>
<th>性别</th>
<th>年龄</th>
<th>籍贯</th>
<th>电话</th>
<th>邮箱</th>
<th>QQ</th>
<th>主页</th>
</tr>
</thead>
<tbody id="tab">
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
<tr>
<td>
<input type="checkbox" value="a" name="test"/>
</td>
<td>免费模板网</td>
<td>男</td>
<td>25</td>
<td>福建省</td>
<td>12345678910</td>
<td>215288671@qq.com</td>
<td>215288671</td>
<td>http://www.865171.cn</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>
<input onClick="if(this.checked==true) { checkAll('test'); } else { clearAll('test'); }" type="checkbox" value="" name="test" title="全选/取消"/>
</td>
<td colspan="8">
<div class="grayr"><span class="disabled"> < </span><span class="current">1</span><a href="#?page=2">2</a><a href="#?page=3">3</a><a href="#?page=4">4</a><a href="#?page=5">5</a><a href="#?page=6">6</a><a href="#?page=7">7</a>...<a href="#?page=199">199</a><a href="#?page=200">200</a><a href="#?page=2"> > </a></div>
</td>
</tr>
</tfoot>
</table>
<a href="http://www.865171.cn">免费模板网</a>
<script type="text/javascript">
<!--
var Ptr=document.getElementById("tab").getElementsByTagName("tr");
function $() {
for (i=1;i<Ptr.length+1;i++) {
Ptr[i-1].style.backgroundColor = (i%2>0)?"#fff":"#eee";
}
}
window.onload=$;
for(var i=0;i<Ptr.length;i++) {
Ptr[i].onmouseover=function(){
this.tmpClass=this.className;
this.style.backgroundColor = "#ccc";
};
Ptr[i].onmouseout=function(){
for (i=1;i<Ptr.length+1;i++) {
Ptr[i-1].style.backgroundColor = (i%2>0)?"#eee":"#fff";
}
}
}
//-->
</script>
</body>
</html>
- 简单的html表格,做后台的幸福了
- html一个简单的表格
- .net 后台创建简单的表格
- 一个简单的表格管理后台
- 简单的小幸福
- 简单的html表格处理代码
- 如何绘制一张简单的html表格
- html个人信息采集表格的简单使用
- html表格实战<<简单的网页布局>>
- HTML 使用表格制作简单的个人简历
- 做程序员老婆的幸福
- 做程序员老婆的幸福
- 做一个幸福的人
- 一个简单的后台管理(Html)
- 幸福的安了家
- 想要的幸福很简单
- 学会简单幸福的生活
- 用html做一个简单的课程表
- Apache地址重写的几个问题
- android sdk更新不了问题
- eclipse项目中关于导入的项目里提示HttpServletRequest 不能引用的解决办法
- Linux Shell编程入门
- HDU 4196 Remoteland
- 简单的html表格,做后台的幸福了
- Simulating class in JavaScript -- 9
- 印刷业ERP启蒙
- 如何在C++代码中调用python代码(MinGW+Boost.Python)
- 黑马程序员-枚举,结构,方法 这三者的区别
- ATMEGA128定时器1的使用
- Uart_Printf()
- S3C2440 AD转换
- Using the SOAP Monitor