摘要: 一、鼠标移动到行更换背景色:css样式:.hover{ background-color: #cccc00; }Js脚本:$(document).ready(function () { //鼠标移动到行变色,单独建立css类hover //tr:gt(0):表示获取大于 tr index 为0 的所有tr,即不包括表头 $("#table1 tr:gt(0)").hover( function () { $(this).addClass("hover") }, function () { $(this).removeClass("hover&q 阅读全文
posted @ 2013-07-08 11:34 Vhelin 阅读(314) 评论(0) 推荐(0) 编辑