使用了sortable无法显示高亮

flytigerme 2009-06-06 06:36:55

</script>
<script src="sorttable.js" type="text/javascript"></script>
<style type="text/css">
body{font-family:"Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#555555;}
div.main{margin:30px auto; width:600px;}
table.sortable{border:0; padding:0; margin:0;}
table.sortable td{padding:4px; width:120px; border-bottom:solid 1px #DEDEDE;}
table.sortable th{padding:4px;}
table.sortable thead{background:#e3edef; color:#333333; text-align:left;}
table.sortable tfoot{font-weight:bold; }
table.sortable tfoot td{border:none;}
</style>


<div class="main">
<table class="sortable" cellspacing="0" border="1" cellpadding="0" align="center">
<thead>
<tr align="center">
<td width="%100"><b>设备类型</b></td>
<td width="%100"><b>设备名称</b></td>
<td width="%100"><b>国家编码</b></td>
<td width="%100"><b>内部编码</b></td>
<td width="%100"><b>设备价格</b></td>
<td width="%100"><b>入库日期</b></td>
<td width="%100"><b>编辑</b></td>
</tr>
</thead>
<c:forEach items="${equiments}" var="equi" >
<tr align="center" onmouseover="bgColor='FDE432'" onmouseout="bgColor='#ffffff'">
<td width="%100">${equi.types}</td>
<td width="%100">${equi.equiName}</td>
<td width="%100">${equi.equiCode}</td>
<td width="%100">${equi.innerCode}</td>
<td width="%100">${equi.equiPrice}</td>
<td width="%100">${equi.buyDate}</td>
<td>
<html:link page="/equiment.do?method=delEquiment&ID=${equi.ID}">
<bean:message key="lable.delEqui"/>
</html:link>
<html:link page="/equiment.do?method=repairEqui&ID=${equi.ID}">
<bean:message key="lable.repairEqui"/>
</html:link>
<html:link page="/updateEqui.do?method=loadEqui&ID=${equi.ID}">
<bean:message key="lable.updateEqui"/>
</html:link>
</td>
</tr>
</c:forEach>
</table>
</div>


使用了sortable后无法再产生鼠标到哪行哪行高亮的效果,求高人指点!


...全文
85 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

87,921

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧