本demo使用jQuery包,实现表格列宽可拖拽功能,并实现页面reset时的重新布局。使用jQuery,方便函数的调用,给要处理的表格添加id 后,直接调用$("#id").movedTh()即可方便实现,修改了firfox的兼容性。
代码如下:
class="td1" > | class="td1" > |
---|
class="td1" > | class="td1" > | class="td1" > | class="td1" > | class="td1" > | class="td1" > |
---|---|---|---|---|---|
class="td1"> | class="td1"> | class="td1"> | class="td1"> | class="td1"> | class="td1"> |
class="td1"> | class="td1"> | class="td1"> | class="td1"> | class="td1"> | class="td1"> |
class="td1"> | class="td1"> | class="td1"> | class="td1"> | class="td1"> | class="td1"> |
class="td1"> | class="td1"> | class="td1"> | class="td1"> | class="td1"> | class="td1"> |