다음 코드는 테이블과 함께 있지만 브라우저가 다르거 나 인쇄 할 때 테이블 높이가 동일하지 않습니다. 그림 1,2와 3의 차이점을보십시오. 모든 테이블에 선이 있거나없는 높이가 필요합니다.테이블 높이가 브라우저에서 동일하지 않음
.prn_outer {
margin: 0;
padding: 0;
border: 1px solid #333;
}
.prn_inner {
margin: 0;
padding: 0;
height: 160px;
border: 1px solid #333;
}
.prn_row_top {
margin: 0;
padding: 0;
border: 1px solid #333;
}
.prn_row_bottom {
margin: 0;
padding: 0;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #333;
}
HTML : 고맙습니다
마티
CSS
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="prn_outer">
<tr>
<td> </td>
</tr>
<tr>
<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="20%"><table border="0" height="160" cellpadding="0" cellspacing="0" width="100%" class="prn_inner">
<tr>
<td height="18"> </td>
</tr>
<tr>
<td height="18" class="prn_row_bottom"> </td>
</tr>
<tr>
<td height="18"> </td>
</tr>
<tr>
<td height="18" class="prn_row_bottom"> </td>
</tr>
<tr>
<td height="18"> </td>
</tr>
<tr>
<td height="18" class="prn_row_bottom"> </td>
</tr>
<tr>
<td height="18"> </td>
</tr>
<tr>
<td height="18"> </td>
</tr>
</table></td>
<td width="20%"><table border="0" height="160" cellpadding="0" cellspacing="0" width="100%" class="prn_inner">
<tr>
<td height="18"> </td>
</tr>
<tr>
<td height="18" class="prn_row_bottom"> </td>
</tr>
<tr>
<td height="18"> </td>
</tr>
<tr>
<td height="18" class="prn_row_bottom" > </td>
</tr>
<tr>
<td height="18"> </td>
</tr>
<tr>
<td height="18" class="prn_row_bottom"> </td>
</tr>
<tr>
<td height="18"> </td>
</tr>
<tr>
<td height="18"> </td>
</tr>
</table></td>
<td width="20%"><table border="0" height="160" cellpadding="0" cellspacing="0" width="100%" class="prn_inner">
<tr>
<td height="18" class="prn_row_bottom"> </td>
</tr>
<tr>
<td height="134"> </td>
</tr>
</table></td>
<td width="20%"><table width="100%" height="160" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="158"> </td>
</tr>
</table></td>
<td width="20%"><table width="100%" height="160" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="158"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
고맙습니다. 둘 다 div 솔루션으로 만들었습니다. – mebots