Jquery colResizable 插件 可拖动表格的宽度
2013-01-22 11:01
239 查看
使用方法:官方网站:http://quocity.com/colresizable
Usage
To use this plugin a script reference must be added to the colResizable.min.js file in the head section of the document once jQuery is loaded. To enhance a table (or collection of tables) point it with a jQuery wrapper and apply the colResizable() method.
Resizing grips will be located in the table according to its first row layout. For this reason, it is not recommended using colspan values in those cells. If colspan in the first row is required, just add an extra row before your table heading with no height
so it won't be visible.
In order to prevent strange behaviors while resizing a column, you are highly encouraged to define the width of the table, either by using its width attribute, an inline style, or a css rule.
就这么简单!
Usage
To use this plugin a script reference must be added to the colResizable.min.js file in the head section of the document once jQuery is loaded. To enhance a table (or collection of tables) point it with a jQuery wrapper and apply the colResizable() method.
Resizing grips will be located in the table according to its first row layout. For this reason, it is not recommended using colspan values in those cells. If colspan in the first row is required, just add an extra row before your table heading with no height
so it won't be visible.
In order to prevent strange behaviors while resizing a column, you are highly encouraged to define the width of the table, either by using its width attribute, an inline style, or a css rule.
<head> <script src="js/jquery.js"></script> <script src="js/colResizable.min.js"></script> </head> <body> <table width="100%" > <tr> <th> header </th> <th> header </th> </tr> <tr> <td> cell </td> <td> cell </td> </tr> <tr> <td> cell </td> <td> cell </td> </tr> </table> </body>
$(function(){ $("table").colResizable(); });
就这么简单!
相关文章推荐
- jquery可拖动表格调整列格子的宽度大小 本文章来源于 代潇瑞博客 原文地址:http://www.daixiaorui.com/read/98.html
- jQuery 表格拖动插件:tableDnD
- java + jquery-ui.sortable.js插件实现表格拖动排序
- 调整Table表格宽度插件colResizable
- jquery可拖动表格调整列格子的宽度大小(转)
- jquery可拖动表格调整列格子的宽度大小
- jQuery 表格插件jqGird学习 - 介绍篇
- 拥有高自定义的jQuery拖动插件
- jquery插件整理篇(七)表格插件
- 18个最好的jQuery表格插件
- jquery 表格自动拆分(方便打印)插件-printTable
- jquery表格插件datatables应用实例
- 用jQuery和jTemplates插件实现客户端分页的表格展现(2)
- 鼠标拖动改变表格宽度
- 超全超实用的Javascript类库和jQuery插件大全之二:文字处理,表格和列表处理,实用的javascript开发工具
- JQuery.dataTables免费开源的数据表格插件
- 一个可绑定数据源的jQuery数据表格插件
- jQuery表格插件datatables用法汇总
- jquery拖动插件(jquery.drag)使用介绍
- 使用jQuery的easydrag插件实现可拖动的DIV弹出框