基于jQuery写的改变表格列的顺序
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title> demo </title>
<style>
.no-select-text {
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
}
#headTable td {
border-bottom: 0px;
cursor: all-scroll;
}
#mainTable td {
width: 77px;
border-top: 0px;
}
</style>
</head>
<body>
<div id="main">
<table id="headTable" border="1" cellpadding="0" cellspacing="0" style="width:400px;text-align:center;">
<tr style="background-color: #E5E5E5">
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
</tr>
</table>
<table id="mainTable" border="1" cellpadding="0" cellspacing="0" style="width:400px;text-align:center;">
<tr>
<td>