<div class="codetitle"> <span><a style="CURSOR: pointer" data="88164" class="copybut" id="copybut88164" onclick="doCopy('code88164')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code88164"> <br><script language="javascript" src="lirms/Test/jquery-1.4.2.js"></script> <br><script language="javascript" src="lirms/Test/vticker.js"></script> <br><script type="text/javascript"> <BR>$(document).ready(function() { <BR>$(".roll").each(function() { <BR>$(this).vTicker({ <BR>showItems : 18, //显示滚动行数 <BR>pause : 3000, //滚动间歇 <BR>speed : 500, //滚动速度 <BR>animation : "fade", <BR>mousePause : false, <BR>direction : "up", //滚动方向 <BR>}); <BR>}); <BR>}); <BR></script> <br> </div> <br>似乎只有通过div-ul-li标签嵌套的方式才能实现表格多行多列的滚动效果(如有改进的地方,请多多指教!) <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="79878" class="copybut" id="copybut79878" onclick="doCopy('code79878')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code79878"> <br><div class="conn"> <br><table> <br><tr> <br><th style="width:50px;">序号</th> <br><th style="width:150px;">名称</th> <br><th style="width:80px;">季度完成量</th> <br><th style="width:50px;">昨日</th> <br><th style="width:70px;">完成进度</th> <br><th style="width:80px;">基本指标</th> <br><th style="width:70px;">挑战指标</th> <br> </tr> <br><tr> <br><td colspan="7"> <br><div class="roll"> <br><ul> <br><foreach items="${statislist}" var="s" varstatus="i"> <br><set var="cs" value=""></set> <br><set var="index" value=""></set> <br><if test="${i.index < 9 }"> <br><set var="index" value="0"></set> <br></if> <br><if test="${i.index % 2==0}"> <br><set var="cs" value="background:#ebf6fd;"></set> <br></if> <br><li style="height:30px;width:550px;line-height:30px;${cs}"> <br><div style="width:50px;text-align:center;float:left;">${index} ${i.count}</div> <br><div style="width:150px;text-align:center;float:left;">${s.name}</div> <br><div style="width:80px;text-align:center;float:left;">${s.number}</div> <br><div style="width:50px;text-align:center;float:left;">${s.zuori}</div> <br><div style="width:70px;text-align:center;float:left;">${s.wcjb}</div> <br><div style="width:80px;text-align:center;float:left;">${s.jbzb}</div> <br><div style="width:70px;text-align:center;float:left;">${s.tzzb}</div> <br> </li> <br></foreach> <br> </ul> <br> </div> <br> </td> <br> </tr> <br> </table> <br> </div> <br> </div>