jquery可收缩展开表格插件表格内容拖动显示



151 600 201



特效描述:jquery 收缩展开 表格插件 表格内容拖动,jquery可收缩展开表格插件表格内容拖动显示

代码结构

1. 引入JS

<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="js/jquery.chromatable.js"></script>

2. HTML代码

<div class="demo">
	<table id="yourTableID" width="100%" border="0" cellspacing="0" cellpadding="0">
		<thead>
			<tr>
				<th>Check out this header</th>
				<th>Look here's another one</th>
				<th>Wow, look at me!</th>
			</tr>
		</thead>
		<tbody>	
			<tr>
				<td>Some content goes in here</td>
				<td>Praesent vitae ligula nec orci pretium vestibulum</td>
				<td>Maecenas tempus dictum libero</td>
			</tr>
			<tr>
			<td>Quisque in wisi quis orci tincidunt fermentum</td>
			<td>Mauris aliquet mattis metus</td>
			<td>Etiam eu ante non leo egestas nonummy</td>
			</tr>
		<tr>
		<td>Some content goes in here</td>
		<td>Praesent vitae ligula nec orci pretium vestibulum</td>
		<td>Maecenas tempus dictum libero</td>
		</tr>
		<tr>
		<td>Quisque in wisi quis orci tincidunt fermentum</td>
		<td>Mauris aliquet mattis metus</td>
		<td>Etiam eu ante non leo egestas nonummy</td>
		</tr>
		<tr>
		<td>Some content goes in here</td>
		<td>Praesent vitae ligula nec orci pretium vestibulum</td>
		<td>Maecenas tempus dictum libero</td>
		</tr>
		<tr>
		<td>Quisque in wisi quis orci tincidunt fermentum</td>
		<td>Mauris aliquet mattis metus</td>
		<td>Etiam eu ante non leo egestas nonummy</td>
		</tr>
		<tr>
		<td>Some content goes in here</td>
		<td>Praesent vitae ligula nec orci pretium vestibulum</td>
		<td>Maecenas tempus dictum libero</td>
		</tr>
		<tr>
		<td>Quisque in wisi quis orci tincidunt fermentum</td>
		<td>Mauris aliquet mattis metus</td>
		<td>Etiam eu ante non leo egestas nonummy</td>
		</tr>
		<tr>
		<td>Some content goes in here</td>
		<td>Praesent vitae ligula nec orci pretium vestibulum</td>
		<td>Maecenas tempus dictum libero</td>
		</tr>
		<tr>
		<td>Quisque in wisi quis orci tincidunt fermentum</td>
		<td>Mauris aliquet mattis metus</td>
		<td>Etiam eu ante non leo egestas nonummy</td>
		</tr>
		<tr>
		<td>Some content goes in here</td>
		<td>Praesent vitae ligula nec orci pretium vestibulum</td>
		<td>Maecenas tempus dictum libero</td>
		</tr>
		<tr>
		<td>Quisque in wisi quis orci tincidunt fermentum</td>
		<td>Mauris aliquet mattis metus</td>
		<td>Etiam eu ante non leo egestas nonummy</td>
		</tr>
		<tr>
		<td>Some content goes in here</td>
		<td>Praesent vitae ligula nec orci pretium vestibulum</td>
		<td>Maecenas tempus dictum libero</td>
		</tr>
		<tr>
		<td>Quisque in wisi quis orci tincidunt fermentum</td>
		<td>Mauris aliquet mattis metus</td>
		<td>Etiam eu ante non leo egestas nonummy</td>
		</tr>
		<tr>
		<td>Some content goes in here</td>
		<td>Praesent vitae ligula nec orci pretium vestibulum</td>
		<td>Maecenas tempus dictum libero</td>
		</tr>
		<tr>
		<td>Quisque in wisi quis orci tincidunt fermentum</td>
		<td>Mauris aliquet mattis metus</td>
		<td>Etiam eu ante non leo egestas nonummy</td>
		</tr>
		<tr>
		<td>Some content goes in here</td>
		<td>Praesent vitae ligula nec orci pretium vestibulum</td>
		<td>Maecenas tempus dictum libero</td>
		</tr>
		<tr>
		<td>Quisque in wisi quis orci tincidunt fermentum</td>
		<td>Mauris aliquet mattis metus</td>
		<td>Etiam eu ante non leo egestas nonummy</td>
		</tr>
		</tbody>	
	</table><br /><br />
	<table id="yourTableID2" width="100%" border="0" cellspacing="0" cellpadding="0">
	<thead>
	<tr>
	<th>Check out this header</th>
	<th>Look here's another one</th>
	<th>Wow, look at me!</th>
	</tr>
	</thead>
	<tbody>	
	<tr>
	<td>Some content goes in here</td>
	<td>Praesent vitae ligula nec orci pretium vestibulum</td>
	<td>Maecenas tempus dictum libero</td>
	</tr>
	<tr>
	<td>Quisque in wisi quis orci tincidunt fermentum</td>
	<td>Mauris aliquet mattis metus</td>
	<td>Etiam eu ante non leo egestas nonummy</td>
	</tr>
	<tr>
	<td>Some content goes in here</td>
	<td>Praesent vitae ligula nec orci pretium vestibulum</td>
	<td>Maecenas tempus dictum libero</td>
	</tr>
	<tr>
	<td>Quisque in wisi quis orci tincidunt fermentum</td>
	<td>Mauris aliquet mattis metus</td>
	<td>Etiam eu ante non leo egestas nonummy</td>
	</tr>
	<tr>
	<td>Some content goes in here</td>
	<td>Praesent vitae ligula nec orci pretium vestibulum</td>
	<td>Maecenas tempus dictum libero</td>
	</tr>
	<tr>
	<td>Quisque in wisi quis orci tincidunt fermentum</td>
	<td>Mauris aliquet mattis metus</td>
	<td>Etiam eu ante non leo egestas nonummy</td>
	</tr>
	<tr>
	<td>Some content goes in here</td>
	<td>Praesent vitae ligula nec orci pretium vestibulum</td>
	<td>Maecenas tempus dictum libero</td>
	</tr>
	<tr>
	<td>Quisque in wisi quis orci tincidunt fermentum</td>
	<td>Mauris aliquet mattis metus</td>
	<td>Etiam eu ante non leo egestas nonummy</td>
	</tr>
	<tr>
	<td>Some content goes in here</td>
	<td>Praesent vitae ligula nec orci pretium vestibulum</td>
	<td>Maecenas tempus dictum libero</td>
	</tr>
	<tr>
	<td>Quisque in wisi quis orci tincidunt fermentum</td>
	<td>Mauris aliquet mattis metus</td>
	<td>Etiam eu ante non leo egestas nonummy</td>
	</tr>
	<tr>
	<td>Some content goes in here</td>
	<td>Praesent vitae ligula nec orci pretium vestibulum</td>
	<td>Maecenas tempus dictum libero</td>
	</tr>
	<tr>
	<td>Quisque in wisi quis orci tincidunt fermentum</td>
	<td>Mauris aliquet mattis metus</td>
	<td>Etiam eu ante non leo egestas nonummy</td>
	</tr>
	<tr>
	<td>Some content goes in here</td>
	<td>Praesent vitae ligula nec orci pretium vestibulum</td>
	<td>Maecenas tempus dictum libero</td>
	</tr>
	<tr>
	<td>Quisque in wisi quis orci tincidunt fermentum</td>
	<td>Mauris aliquet mattis metus</td>
	<td>Etiam eu ante non leo egestas nonummy</td>
	</tr>
	<tr>
	<td>Some content goes in here</td>
	<td>Praesent vitae ligula nec orci pretium vestibulum</td>
	<td>Maecenas tempus dictum libero</td>
	</tr>
	<tr>
	<td>Quisque in wisi quis orci tincidunt fermentum</td>
	<td>Mauris aliquet mattis metus</td>
	<td>Etiam eu ante non leo egestas nonummy</td>
	</tr>
	<tr>
	<td>Some content goes in here</td>
	<td>Praesent vitae ligula nec orci pretium vestibulum</td>
	<td>Maecenas tempus dictum libero</td>
	</tr>
	<tr>
	<td>Quisque in wisi quis orci tincidunt fermentum</td>
	<td>Mauris aliquet mattis metus</td>
	<td>Etiam eu ante non leo egestas nonummy</td>
	</tr>
	</tbody>	
	</table>
</div>	



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册
admin
关注
TA的相关作品 >>更多
热搜关键词


热门标签: 图片拖动 收缩导航菜单 文字标签 文字拖动 文字收缩展开 彩色文字 拖动排序 图片收缩展开 文字闪烁 打字机 弹出层拖动 文字列表 文字弹幕 文字高亮 文字叠加 文字拖动 文字提示框 文字收缩展开 文字放大缩小 文字翻转旋转 文字淡出淡进 文字全屏 文字延迟加载 拖动拽动 360全景 html5文字动画 文字滚动 文字滑动 文字切换 收缩收起展开 图片文字 文字导航菜单 文字

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到