th {
font-size: 12px;
font-weight: bold;
text-align: right;
padding: 5px 10px 5px 10px;
border-left: 1px solid lightgray;
border-bottom: 1px solid lightgray;
}
td {
border-left: 1px solid lightgray;
border-bottom: 1px solid lightgray;
min-width: 100px;
height: 38px;
}
.table th {
background-color: #eee;
}
.table th, .table td {
text-align: center;
}
.title th {
font-size: 15px;
padding: 10px;
}
.no-border{
border:none;
}
.only-left-border{
border-top:none;
border-bottom:none;
border-right:none;
}
.only-bottom-border{
border-top:none;
border-left:none;
border-right:none;
}
.only-left-bottom-border{
border-top:none;
border-right:none;
}
<tr>
<td colspan="6" th:text="*{changeDescription}" rowspan="5"></td>
<td colspan="3" th:text="*{changeTypeTxt}" class="only-left-border"></td>
<td colspan="3" th:text="*{othersChangeType}" class="no-border"></td>
</tr>
<tr>
<td colspan="3" th:text="*{changeTypeTxt}" class="only-left-border"></td>
<td colspan="3" th:text="*{othersChangeType}" class="no-border"></td>
</tr>
<tr>
<td colspan="3" th:text="*{changeTypeTxt}" class="only-left-border"></td>
<td colspan="3" th:text="*{othersChangeType}" class="no-border"></td>
</tr>
<tr>
<td colspan="3" th:text="*{changeTypeTxt}" class="only-left-border"></td>
<td colspan="3" th:text="*{othersChangeType}" class="no-border"></td>
</tr>
<tr>
<td colspan="3" th:text="*{changeTypeTxt}" class="only-left-bottom-border"></td>
<td colspan="3" th:text="*{othersChangeType}" class="only-bottom-border"></td>
</tr>
<tr>
<th colspan="3">Reason of Change <br />变更原因
</th>
<td colspan="9" th:text="*{changeReason}"></td>
</tr>
<tr>
<th colspan="3">Customer Requirement <br />客户要求
</th>
<td colspan="5" th:text="*{customerRequirement}"></td>
<td colspan="2" th:text="*{ecrRequired}"><input type="checkbox"/>No ECR Required <br/>无ECR要求</td>
<td colspan="2" th:text="*{ecrRequired}"><input type="checkbox"/>ECR required <br/>客户ECR要求</td>
</tr>
</table>
</div>