table表格嵌套边框合并问题

table表格嵌套边框合并问题

外层table与内层table嵌套,内外表格都需边框时,设置“border=1”,但边框会重复,造成某些地方边框粗,有些地方边框细的问题。

解决办法:

外表格样式:

<table border="1" cellspacing="0" cellpadding="0" style="border-collapse: collapse;”>

内表格样式:

<table border="1" cellspacing="0" cellpadding="0" style="border-collapse: collapse;border-width:0px; border-style:hidden;">

  目录