【发布时间】:2023-02-20 09:13:07
【问题描述】:
给出下表:
<table>
<tr>
<td id="resultsTable"></td>
<td>content<td>
</tr>
</table>
我需要将动态生成的表插入到 resultsTable 单元格中。在 JS 中,它是用
var table = document.createElement("table");
table.setAttribute("class", "resultsTable");
table.setAttribute("id", "resultsTable");
表格永远不会插入到单元格中,动态生成的表格会影响 svg 地图。
【问题讨论】:
标签: javascript html css