给出一种思路:
answerText = "<table width='' id=''>";
循环下面的行:
answerText += "<tr><td></td></tr>";
或者循环列:
answerText += "<td></td>";
answerText = "<table width='' id=''>";
循环下面的行:
answerText += "<tr><td></td></tr>";
或者循环列:
answerText += "<td></td>";
例如这样
answerText = "<table border=1 cellpadding=0 cellspacing=0 style='border-collapse: collapse' bordercolor=#111111 width=100%><tr><td width=100%>看看你的成绩如何? </td></tr></table>"