设置table单元格样式的css

<style type="text/css">

table.data {font-size: 90%; border-collapse: collapse; border: 1px solid black;}
table.data th {background: #bddeff; width: 25em; text-align: left; padding-right: 8px; font-weight: normal; border: 1px solid black;}
table.data td {background: #ffffff; vertical-align: top; padding: 0px 2px 0px 2px; border: 1px solid black;}

</style>

 

 <table cellpadding="0" cellspacing="1"  border="1"  width="100%" class="data">
         <tr  align="center">
            <th class="td1">发放号</th>
            <td class="td2">${info.ffh}</td>
            <thclass="td1">贷款契约编号</th>
            <td class="td2">${info.dkqyid}</td>
          </tr>

</table>

你可能感兴趣的:(css)