日期:2014-05-17  浏览次数:20823 次

如何使用jQuery组件 给一个表单加高亮度显示
jsp中迭代出来一个表单
对于table中的一行<tr> 添加一个时间onmouseover 当鼠标移动过来的时候 让这一行的亮度变高 怎么做

------解决方案--------------------
如果是白色背景没办法调整亮度,本代码实现改变颜色。

js部分
function over(tr) {
tr.style.backgroundColor="red";
}

function out(tr) {
tr.style.backgroundColor="";
}
显示部分
<table border="1" width="100%">
<tr onmouseover="over(this)" onmouseout="out(this)">
<td>改变颜色</td>
</tr>
</table>
------解决方案--------------------
那你的高亮到底是什么效果?你给个demo看看。