table嵌套中边框重叠

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_38078822/article/details/82320680

1、外表格样式

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


2、内表格样式

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

嵌套的table完全填充在所在td中

table的这两个属性:width='100%' height='100%'这样就可以填充完整了

固定table中td大小防止写入后变形

<table   cellpadding="0" style="table-layout:fixed; ">

猜你喜欢

转载自blog.csdn.net/qq_38078822/article/details/82320680