js创建tr td问题? var otd = document.createElement("td");我创建了这个td后怎样给这个td加colspan="2"? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 otd.setAttribute("colspan") = "2"; otd.setAttribute("colspan","2");刚才错了 谢谢,如果要为table里加它呢,cellspacing="0" cellpadding="0" table的对象获得后 可以参考用setAttribute()去添加比如tb.setAttribute("cellspacing","0"); 加两个用什么隔开,tb.setAttribute("cellspacing","0" ,cellpadding="0"); js用setAttribute("attr","value"),利用其他的js库方便些… 调用两次setAttributetb.setAttribute("cellspacing","0");tb.setAttribute("cellpadding","0"); jquery 正则问题 关于js函数参数传递问题 如果让DIV不能被点击 找 工具 找 工具 ExtJS中如何删除一个panel下的所有子元素 iframe相关、锚点 大侠来帮帮忙,我可能中了木马,帮我解密下这段加密过的js脚本可以么? 谢谢 客户端文件存在的检查 哥们,请看一下 background-image加载失败后 jQuery有办法获取这个错误吗? 急急急:js实现按照坐标移动轨迹 调用vc写的Activex控件函数时带句柄,这个句柄怎么传递?
比如tb.setAttribute("cellspacing","0");
利用其他的js库方便些…
tb.setAttribute("cellspacing","0");
tb.setAttribute("cellpadding","0");