innerHTML td标签样式

时间:2016-10-13 15:21:33

标签: for-loop html-table styling

   function addition(id)
   {
       var myTable  = ref.document.getElementById(id);`enter code here`
       var newRow = myTable.insertRow(myTable.rows.length);
       var newTd1 = newRow.insertCell(0);
       var newTd2 = newRow.insertCell(1);
       var rowlen = eval(myTable.rows.length);

       newTd1.innerHTML = '<INPUT TYPE=TEXT ..............">';
   }

我想给宽度和一些风格

......你能帮我解决这个问题吗?

0 个答案:

没有答案