jquery合并单元格问题,求教。 <table Id="tbl"><td id="Name">text</td>这是表的一部分,想当获取某个焦点时,这个单元格和下面一个单元格合并。失去焦点时,拆分还原。jquery具体怎么操作。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 弄了个点击的,你看是这样不?<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title><script src="jquery-1.5.2.min.js" type="text/javascript"></script></head><script> $(document).ready( function(){ $(".t").click(function(){ $(".t").css("border","1px #000 solid"); var index = $(this).parents("tr").find("td").index($(this)); $(this).css("border-bottom","0"); $(this).parent().next().find("td").eq(index).css("border-top","0"); }); });</script><body><table border="1PX" cellpadding="2" cellspacing="0"> <tr> <td class="t">ASDADA</td> <td class="t">DGD</td> <td class="t">FGSDG</td> <td class="t">SDGSDFG</td> </tr> <tr> <td class="t" on>SGFDS</td> <td class="t">SDHFG</td> <td class="t">FGNNGN</td> <td class="t">GHSN</td> </tr> <tr> <td class="t">SNSF</td> <td class="t">SBDFG</td> <td class="t">SFBFG</td> <td class="t">SNGSF</td> </tr></table></body> 紧急求助!如何更改nicEdit的大小 js加载本地图片,有的图片显示,有的不显示? 脚本的调用 javascript 替换字符串问题 表单传值难题,在线等. 大家来帮忙看看我遇到的这个问题 数组 求一个检测图片类型和文件大小的代码,要支持FF 参数传递乱满问题. javaScript 对于对象和函数声明的场景 页面回访【求教】 输入框带删除按钮,有没有简洁一点的代码
弄了个点击的,你看是这样不?<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script src="jquery-1.5.2.min.js" type="text/javascript"></script>
</head>
<script>
$(document).ready(
function(){
$(".t").click(function(){
$(".t").css("border","1px #000 solid");
var index = $(this).parents("tr").find("td").index($(this));
$(this).css("border-bottom","0");
$(this).parent().next().find("td").eq(index).css("border-top","0");
});
});</script>
<body>
<table border="1PX" cellpadding="2" cellspacing="0">
<tr>
<td class="t">ASDADA</td>
<td class="t">DGD</td>
<td class="t">FGSDG</td>
<td class="t">SDGSDFG</td>
</tr>
<tr>
<td class="t" on>SGFDS</td>
<td class="t">SDHFG</td>
<td class="t">FGNNGN</td>
<td class="t">GHSN</td>
</tr>
<tr>
<td class="t">SNSF</td>
<td class="t">SBDFG</td>
<td class="t">SFBFG</td>
<td class="t">SNGSF</td>
</tr>
</table></body>