我正在尝试使用 :nth-child(5); 在背景上拉伸图像以进行第三次打印。但它没有抓住它。难道我做错了什么?
table#OppPracticeOverview tr th {
padding:5px !important;
background-color:transparent;
}
table#OppPracticeOverview tr th img {
width:47px;
height:22px;
float:left;
margin:-5px 0 0 -42px;
position:absolute;
z-index:-1;
}
table#OppPracticeOverview tr th img:nth-child(5) {
width:110px;
height:22px;
float:left;
margin:-5px 0 0 -105px;
position:absolute;
z-index:-1;
}
HTML:
<table id="OppPracticeOverview">
<tbody>
<tr>
<th>
Patients
<img src="/images/img-CCCCCC.png">
</th>
<td>
<th>
On Hold
<img src="/images/img-CCCCCC.png">
</th>
<td>
<th>
Reattribution Request
<img src="/images/img-CCCCCC.png">
</th>
<td>
</tr>
</tbody>