@H_404_0@本文实例讲述了jQuery表格(Table)基本操作。分享给大家供大家参考,具体如下:
@H_4040@Jquery 操作 Html Table 是很方便的,这里对表格的基本操作进行一下简单的总结。
@H404_0@首先建立一个通用的表格css 和一个 表格Table:
<div class="jb51code">
<pre class="brush:css;">
table
{
border-collapse: collapse;
border-spacing: 0;
margin-right: auto;
margin-left: auto;
width: 800px;
}
th,td
{
border: 1px solid #b5d6e6;
font-size: 12px;
font-weight: normal;
text-align: center;
vertical-align: middle;
height: 20px;
}
th
{
background-color: Gray;
}