jquery可收縮展開表格插件表格內容拖動顯示



105 418 140



特效描述: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>	



用戶評論
大牛,別默默的看了,快登錄幫我點評一下吧!:)      登錄 | 注冊


熱門標簽: 文字疊加 文字層疊 文字翻轉 文字旋轉 文字收縮展開 文字收縮 文字展開 文字提示框 提示文字 文字淡出淡進 文字淡出 文字淡進 文字拖動 文字拖拽 文字全屏 文字延遲加載 文字延遲 文字加載 文字放大縮小 文字縮放 文字大小 文字放大 文字縮小 文字變大 文字變小 360全景 360度全景 h5文字動畫 h5文字邊框動畫 html5文字動畫 html5文字邊框動畫 拖動 拖拽 拖動插件 拖拽插件 文字切換 文字選項卡 文字滑動 文字滑塊 文字滾動 文字無縫滾動 文字間歇滾動 收縮展開 展開收縮 收縮 展開 圖片文字 文字導航菜單 文字導航 文字菜單 文字 文字插件 文字拖動 文字拖拽 文字收縮展開 文字收縮 文字展開 文字列表
?
×
×

注冊

官方QQ群

掃描上面二維碼加微信群

官方QQ群

jQuery/js討論群
群號:642649996
Css3+Html5討論群
群號:322131262

加群請備注:從官網了解到

老夫子电子