tr显示hint

先定义一个DIV,把你要提示的内容,放到这个DIV中
<div id="divInfo" style="visibility:hidden;">
<p>向上增加一行</p><br/>

<p>修改此行</p><br/>

<p>向下增加一行</p>

</div>
代码:
$("table tr").mouseover(function(){
$("#divInfo").css("z-index",999);//让层浮动

$("#divInfo").css("top",this.top+行高);//设置提示div的位置

$("#divInfo").css("left",11);

$("#divInfo").css("visibility","visible");
})
就行了

猜你喜欢

转载自blog.csdn.net/xiaozhanger/article/details/78037665
tr