如何判断鼠标放在了表格的竖线上? 当鼠标放在表格的竖线上,用js改变鼠标的形状,当按下鼠标时做一些操作 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 竖线上!!! 要是border="0"呢 $("tr").mouseover( function(){ $(this).css("cursor","pointer");}).mouseout( function(){ $(this).css("cursor","default");}).click( function() {//点击时做你想做的事}); <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="1" style="cursor:nw-resize"></td> <td width="98%" style="height:3px;border-bottom:1px #000000 solid; cursor:s-resize;"> </td> <td width="1" style="cursor:ne-resize"></td> </tr> <tr> <td style="border-right:1px #000000 solid;cursor:e-resize;"> </td> <td height="100"> </td> <td style="border-left:1px #000000 solid;cursor:e-resize;"> </td> </tr> <tr> <td style="cursor:ne-resize"> </td> <td style="border-top:1px #000000 solid;cursor:s-resize;"> </td> <td style="cursor:se-resize"> </td> </tr></table> 看来是没有直接的方法了,本意是不改变原来表格的数据结构,不添加数据内容,只是通过css来实现其功能,看来是不容易呀 应该不行的,你放个div在你的竖线上,移到div时改变鼠标状态并触发事件http://topic.csdn.net/u/20110712/15/30f6992b-dd37-45d4-ba43-28de7b8340d9.html这里有写个类似的,不过是改变div的高度高度。 利用辅助的div已经实现了,关键是不想破坏原来的数据表,只想通过css控制,看来是不容易办到 你可以判断mouseover,再获取鼠标位置来判断,只不过这样比较麻烦一点 加个属性 contentEditable=true 怎么在ImageButton的点击事件里面获得HiddenField 的值 急急急!!! 关于SqlDataSource配置select语句问题 java正则表达式取得html标签内的内容 asp.net 请求无限级分类算法及数据库设计 我做了一个自定义控件如何给它加上一个皮肤? 出100分再次问这个问题。急急急急急急急急急急急急急急急急,在线等。 刚学存储过程,请教个问题 怎样屏蔽键盘事件 大菜问题! login控件的图文验证 ASP.NET 读取EXCEL2007问题 求解!!
竖线上!!! 要是border="0"呢
$("tr").mouseover(
function(){
$(this).css("cursor","pointer");}
).mouseout(
function(){
$(this).css("cursor","default");}
).click(
function()
{//点击时做你想做的事}
);
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1" style="cursor:nw-resize"></td>
<td width="98%" style="height:3px;border-bottom:1px #000000 solid; cursor:s-resize;"> </td>
<td width="1" style="cursor:ne-resize"></td>
</tr>
<tr>
<td style="border-right:1px #000000 solid;cursor:e-resize;"> </td>
<td height="100"> </td>
<td style="border-left:1px #000000 solid;cursor:e-resize;"> </td>
</tr>
<tr>
<td style="cursor:ne-resize"> </td>
<td style="border-top:1px #000000 solid;cursor:s-resize;"> </td>
<td style="cursor:se-resize"> </td>
</tr>
</table>
http://topic.csdn.net/u/20110712/15/30f6992b-dd37-45d4-ba43-28de7b8340d9.html
这里有写个类似的,不过是改变div的高度高度。