您的位置:首页 > Web前端 > JQuery

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

2015-09-28 16:01 811 查看
谷歌浏览器下运行



<!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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: