----------------------------------------------------------
| | |
| A | B |
| |_________________________|
| | C |
| | |
-----------------------------------------------------------我想用javascript实现以上表格样式,左面的合并单元格我不会了,各位高手的哥哥姐姐帮帮我吧!
目前我只能写到一下这种程度,请高手帮我看看:<script language="javascript">
function showtable()
{
var row=document.createElement("tr");
var cell=document.createElement("td");
cell.appendChild(document.createTextNode("a1"));
row.appendChild(cell);
var cell=document.createElement("td");
cell.appendChild(document.createTextNode("a2"));
row.appendChild(cell); document.getElementById("sortLost").appendChild(row);
cell=document.createElement("td");
cell.appendChild(document.createTextNode("b1"));
row.appendChild(cell);
var cell=document.createElement("td");
cell.appendChild(document.createTextNode("b2"));
row.appendChild(cell); document.getElementById("sortLost").appendChild(row);
}
</script>真是辛苦你们!谢谢!
| | |
| A | B |
| |_________________________|
| | C |
| | |
-----------------------------------------------------------我想用javascript实现以上表格样式,左面的合并单元格我不会了,各位高手的哥哥姐姐帮帮我吧!
目前我只能写到一下这种程度,请高手帮我看看:<script language="javascript">
function showtable()
{
var row=document.createElement("tr");
var cell=document.createElement("td");
cell.appendChild(document.createTextNode("a1"));
row.appendChild(cell);
var cell=document.createElement("td");
cell.appendChild(document.createTextNode("a2"));
row.appendChild(cell); document.getElementById("sortLost").appendChild(row);
cell=document.createElement("td");
cell.appendChild(document.createTextNode("b1"));
row.appendChild(cell);
var cell=document.createElement("td");
cell.appendChild(document.createTextNode("b2"));
row.appendChild(cell); document.getElementById("sortLost").appendChild(row);
}
</script>真是辛苦你们!谢谢!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货