var qq="<tablestyle='width:350px;' id='tablehelp'>";
var jjj=0;
for(var di=0;di
<tmp.Rows.length;di++)
{
if(di%3
==0)
{
jjj+
=1;
qq+="<tr>";
}
if(role
==1)
qq+="<td align='left' style='width:100px;'><input type='checkbox' id='dep"+tmp.Rows[di].id+"' name='dep"+tmp.Rows[di].username+"' /><label>"+tmp.Rows[di].username+"</label></td>";
else if(role==2)
{
qq+="
<td align='left' style='width:100px;'><input type='checkbox' id='dep"+tmp.Rows[di].ID+"' name='dep"+tmp.Rows[di].DepartName+"' /><label>"+tmp.Rows[di].DepartName+"</label></td>";
}
if(jjj%3==0)
qq+="
</tr>";
else if (di==tmp.Rows.length-1)
{
qq+="
</tr>";
}
}
qq+="
</table>";

  

给table加上边框

↓ 

给table加上边框

  var qq="<table cellspace='1' style='width:350px;' id='tablehelp'>";

  

 <style type="text/css">
#tablehelp
{
background-color
:#000000;
}
#tablehelp tr
{
background-color
:#FFFFFF;
}
</style>

  

 

 

相关文章:

  • 2021-07-27
  • 2021-12-09
  • 2022-12-23
  • 2021-12-05
  • 2021-12-31
  • 2022-12-23
  • 2021-12-24
猜你喜欢
  • 2021-12-05
  • 2022-01-06
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2021-12-05
相关资源
相似解决方案