jquery可拖动表格调整列格子的宽度大小

26 篇文章 0 订阅

谷歌浏览器下运行


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jquery可拖动表格调整列格子的宽度大小</title>
</head>
<body>
<style type="text/css">
table{border-collapse:collapse;border-spacing:0;}
.listext th{background:#eee;color:#3366cc;}
.listext th,.listext td{border:solid 1px #ddd;text-align:left;padding:10px;font-size:14px;}
.rc-handle-container{position:relative;}
.rc-handle{position:absolute;width:7px;cursor:ew-resize;*cursor:pointer;margin-left:-3px;}
</style>
<table width="100%" class="listext">
  <tr>
    <th>www</th>
    <th>daixiaorui</th>
    <th>com</th>
  </tr>
  <tr>
    <td>欢迎</td>
    <td>您的</td>
    <td>访问</td>
  </tr>
  <tr>
    <td>欢迎</td>
    <td>您的</td>
    <td>访问</td>
  </tr>
</table>

<script type="text/javascript" src="jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="jquery.resizableColumns.js"></script>
<script type="text/javascript">
$(function(){
	$("table").resizableColumns({});
});
</script>

</body>
</html>


转自:http://www.daixiaorui.com/read/98.html


所需文件下载地址:http://xiazai.jb51.net/201405/yuanma/jquery-resizableColumns.zip  


  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值