我需要填充表格中的填充和每行的底部边框。 为此,我创建了一个类并使用带有tr标签的类。填充和边框不与tr标记一起工作
这是我的代码。
<html>
<head>
<style>
#topLevel{
background:powderblue;
padding:30;
}
#container{
background: white;
}
.row{
background:white;
padding: 10;
border-bottom: 1pt solid black;
font-family: calibri;
font-size: 12px;
color : #979799;
}
th {
text-align: left;
}
</style>
</head>
<body>
<div id="topLevel">
<div id ="container">
<table style="width:100%">
<tr class = "row"> <th>CLAIM NO</th> <th>POLICY NO</th> <th>CLAIMANT NAME</th> <th>DATE OF INCIDENT </th> <th>REPORTED DATE</th> <th>CITY</th> <th>MOBILE NO</th> <th>ACTIONS</th>
</tr>
<tr class = "row"> <td>CLAIM NO</td> <td>POLICY NO</td> <td>CLAIMANT NAME</td> <td>DATE OF INCIDENT </td> <td>REPORTED DATE</td> <td>CITY</td> <td>MOBILE NO</td> <td>ACTIONS</td></tr>
</table>
</div>
</div>
</body>
</html>
请帮
** ** 10px的不** 10 ** - 您还需要指定单位 –
边框宽度属性必须位于“px”中。你不能使用“pt”。 “pt”只是指字体。 – sn3ll
甚至不能使用10px –