微信掃碼登錄 ×
jQuery表格展開列單元格代碼

jQuery表格展開列單元格代碼

收藏
jQuery表格展開列單元格代碼
這是一款jQuery表格支持展開收縮單元格列表代碼。首先在初始化時(shí),所有的表格列單元格簡單內(nèi)容顯示,當(dāng)用戶點(diǎn)擊表格列頭時(shí),該列被展開,顯示詳細(xì)內(nèi)容效果代碼。ps:不兼容IE6,7,8

使用方法:

1、head引入css文件

<link rel="stylesheet" type="text/css" href="css/demo.css" />

2、body引入js文件

<script src="js/jquery-1.11.0.min.js" type="text/javascript"></script>
<script src="js/TweenMax.min.js"></script>
<script src="js/imagesloaded.pkgd.min.js"></script>
<script src="js/demo.js"></script>

3、body引入HTML代碼

<!-- 默認(rèn)加載動(dòng)畫 -->
<div class="loader">
  <div class="lds-ripple">
	<div></div>
	<div></div>
  </div>
</div>


<section class="table-wrapper">
  
  <!-- coidea:table-holder:table START -->
  <table>
	
	<!-- coidea:table-holder:table:head START -->
	<thead>
	  <tr>
		<th></th>
		<th class="trigger"><p>Basic</p></th>
		<th class="trigger"><p>Basic</p><span>plus</span></th>
		<th class="trigger"><p>Standard</p></th>
		<th class="trigger"><p>Standard</p><span>plus</span></th>
		<th class="trigger"><p>Medium</p></th>
		<th class="trigger"><p>Medium</p><span>plus</span></th>
		<th class="trigger"><p>Large</p></th>
		<th class="trigger"><p>Large</p><span>plus</span></th>
		<th class="trigger"><p>Extended</p></th>
		<th class="trigger"><p>Extended</p><span>plus</span></th>
	  </tr>
	</thead>
	<!-- coidea:table-holder:table:head END -->
	
	<!-- coidea:table-holder:table:body START -->
	<tbody>
	
	  <!-- coidea:table-holder:table:body:row START -->
	  <tr>
		<td><p><strong>Price</strong></p></td>
		<td><p>$19</p> <span>Per Month</span></td>
		<td><p>$29</p> <span>Per Month</span></td>
		<td><p>$39</p> <span>Per Month</span></td>
		<td><p>$49</p> <span>Per Month</span></td>
		<td><p>$59</p> <span>Per Month</span></td>
		<td><p>$69</p> <span>Per Month</span></td>
		<td><p>$79</p> <span>Per Month</span></td>
		<td><p>$89</p> <span>Per Month</span></td>
		<td><p>$99</p> <span>Per Month</span></td>
		<td><p>$129</p> <span>Per Month</span></td>
	  </tr>
	  <!-- coidea:table-holder:table:body:row END -->
	  
	  <!-- coidea:table-holder:table:body:row START -->
	  <tr>
		<td><p><strong>Bandwidth</strong></p><p>Monthly</p></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>1GB *</p><span>Unlimited in first year</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>2GB *</p><span>Unlimited in first year</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>3GB *</p><span>Unlimited in first year</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>4GB *</p><span>Unlimited in first year</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>5GB *</p><span>Unlimited in first year</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>6GB *</p><span>Unlimited in first year</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>7GB *</p><span>Unlimited in first year</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>8GB *</p><span>Unlimited in first year</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>9GB *</p><span>Unlimited in first year</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>12GB *</p><span>Unlimited in first year</span></td>
	  </tr>
	  <!-- coidea:table-holder:table:body:row END -->
	  
	  <!-- coidea:table-holder:table:body:row START -->
	  <tr>
		<td><p><strong>Storage</strong></p><p>Free installation</p></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>1GB *</p><span>Free installation</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>2GB *</p><span>Free installation</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>3GB *</p><span>Free installation</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>4GB *</p><span>Free installation</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>5GB *</p><span>Free installation</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>6GB *</p><span>Free installation</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>7GB *</p><span>Free installation</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>8GB *</p><span>Free installation</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>9GB *</p><span>Free installation</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>12GB *</p><span>Free installation</span></td>
	  </tr>
	  <!-- coidea:table-holder:table:body:row END -->
	  
	  <!-- coidea:table-holder:table:body:row START -->
	  <tr>
		<td><p><strong>Add Ons</strong></p><p>Sub domains</p></td>
		<td><img src="img/icon-close.png" class="close" alt=""/>
		  <p>- *</p>
		  <span>Without Sub domain</span></td>
		<td><img src="img/icon-close.png" class="close" alt=""/>
		  <p>- *</p>
		  <span>Without Sub domain</span></td>
		<td><img src="img/icon-close.png" class="close" alt=""/>
		  <p>- *</p>
		  <span>Without Sub domain</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>1 *</p>
		  <span>Sub domain</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>2 *</p>
		  <span>Sub domains</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>3 *</p>
		  <span>Sub domains</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>4 *</p>
		  <span>Sub domains</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>5 *</p>
		  <span>Sub domains</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>6 *</p>
		  <span>Sub domains</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>7 *</p>
		  <span>Sub domains</span></td>
	  </tr>
	  <!-- coidea:table-holder:table:body:row END -->
	  
	  <!-- coidea:table-holder:table:body:row START -->
	  <tr>
		<td><p><strong>Database</strong></p><p>Support</p></td>
		<td><img src="img/icon-close.png" class="close" alt=""/>
		  <p>- *</p>
		  <span>Without Sub domain</span></td>
		<td><img src="img/icon-close.png" class="close" alt=""/>
		  <p>- *</p>
		  <span>Without Sub domain</span></td>
		<td><img src="img/icon-close.png" class="close" alt=""/>
		  <p>- *</p>
		  <span>Without Sub domain</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>1 *</p>
		  <span>MySQL Database - Without Support</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>2 *</p>
		  <span>MySQL Databases - Without Support</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>3 *</p>
		  <span>MySQL Databases - Without Support</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>4 *</p>
		  <span>MySQL Databases - With Support</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>5 *</p>
		  <span>MySQL Databases - With Support</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>6 *</p>
		  <span>MySQL Databases - With Support</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <p>7 *</p>
		  <span>MySQL Databases - With Support</span></td>
	  </tr>
	  <!-- coidea:table-holder:table:body:row END -->
	  
	  <!-- coidea:table-holder:table:body:row START -->
	  <tr>
		<td><p><strong>Backup</strong></p><p>Free (Yes/No)</p></td>
		<td><img src="img/icon-close.png" class="close" alt=""/>
		  <span>No.</span></td>
		<td><img src="img/icon-close.png" class="close" alt=""/>
		  <span>No.</span></td>
		<td><img src="img/icon-close.png" class="close" alt=""/>
		  <span>No.</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <span>Yes.</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <span>Yes.</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/>  
		  <span>Yes.</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/>  
		  <span>Yes.</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/>  
		  <span>Yes.</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/> 
		  <span>Yes.</span></td>
		<td><img src="img/icon-correct.png" class="correct" alt=""/>  
		  <span>Yes.</span></td>
	  </tr>
	  <!-- coidea:table-holder:table:body:row END -->
	  
	</tbody>
	<!-- coidea:table-holder:table:body END -->
	
  </table>
  <!-- coidea:table-holder:table END -->

</section>

使用聲明

1. 本站所有素材(未指定商用),僅限學(xué)習(xí)交流。
2. 會(huì)員在本站下載的原創(chuàng)商用和VIP素材后,只擁有使用權(quán),著作權(quán)歸原作者及17素材網(wǎng)所有。
3. 原創(chuàng)商用和VIP素材,未經(jīng)合法授權(quán),請(qǐng)勿用于商業(yè)用途,會(huì)員不得以任何形式發(fā)布、傳播、復(fù)制、轉(zhuǎn)售該素材,否則一律封號(hào)處理。
4. 本平臺(tái)織夢模板僅展示和個(gè)人非盈利用途,織夢系統(tǒng)商業(yè)用途請(qǐng)預(yù)先授權(quán)。

x
×
×

注冊(cè)

QQ注冊(cè) 立即下載 微信注冊(cè) 立即下載

簽到成功!

已連續(xù)簽到1天,連續(xù)簽到3天可獲得50積分

知道了