Html
    Css
    Js

    
                        
table,tbody,tfoot,thead,tr,th,td {
	margin:0;
	padding:0;
	outline:0;
	font-size:100%;
	vertical-align:baseline;
	background:transparent;
	border-collapse:collapse;
	border-spacing:0;
	border:0px;
}
.tablebox {
	width:300px;
	height:400px;
	overflow:hidden;
	margin:50px auto;
}
.tablebox table {
	width:100%;
}
.tablebox table th,.tablebox table td {
	font-size:12px;
	text-align:center;
	line-height:36px;
}
.tablebox table th {
	color:#2584e3;
	background-color:#f6f6f6;
}
.tablebox table td img {
	display:inline-block;
	vertical-align:middle;
}
.tablebox table tbody tr:nth-child(even) {
	background-color:#f6f6f6;
}
.tablebox.table_md table td,.tablebox.table_md table th {
	line-height:40px;
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

jQuery table表格无缝向上滚动

0