我正在尝试设置与选择按钮不同的分页按钮样式。我用于选择按钮的选择器也适用于分页按钮:
.gridView tr td a{} /* I've assigned the gridView class to the GridView */
如何只选择分页按钮?我试过这个:
.gridView tr td table tr td a{} //traced this down using Chrome's Inspect Element
编辑:这是 HTML(用 ASP.NET 编写)
<div class="gridViewContainer">
<div>
<table class="gridView" cellspacing="0" rules="rows" border="1" id="GridViewName" style="border-collapse:collapse;">
<tr>
<th scope="col"> </th><th scope="col">FRAME</th><th scope="col">ELEV</th><th scope="col">CW</th><th scope="col">LEVEL</th>
</tr><tr>
<td><a href="javascript:__doPostBack('GridViewName','Select$0')">Select</a></td><td>MT</td><td> </td><td> </td><td> </td>
</tr><tr>
<td><a href="javascript:__doPostBack('GridViewName','Select$1')">Select</a></td><td>QA</td><td> </td><td> </td><td> </td>
</tr><tr>
<td><a href="javascript:__doPostBack('GridViewName','Select$2')">Select</a></td><td>QA</td><td> </td><td> </td><td> </td>
</tr><tr>
<td><a href="javascript:__doPostBack('GridViewName','Select$3')">Select</a></td><td>VX</td><td> </td><td> </td><td> </td>
</tr><tr>
<td><a href="javascript:__doPostBack('GridViewName','Select$4')">Select</a></td><td>PP</td><td> </td><td> </td><td> </td>
</tr><tr>
<td><a href="javascript:__doPostBack('GridViewName','Select$5')">Select</a></td><td>PP</td><td> </td><td> </td><td> </td>
</tr><tr>
<td colspan="6"><table>
<tr>
<td><span>1</span></td><td><a href="javascript:__doPostBack('GridViewName','Page$2')">2</a></td><td><a href="javascript:__doPostBack('GridViewName','Page$3')">3</a></td><td><a href="javascript:__doPostBack('GridViewName','Page$4')">4</a></td><td><a href="javascript:__doPostBack('GridViewName','Page$5')">5</a></td><td><a href="javascript:__doPostBack('GridViewName','Page$6')">6</a></td><td><a href="javascript:__doPostBack('GridViewName','Page$7')">7</a></td><td><a href="javascript:__doPostBack('GridViewName','Page$8')">8</a></td><td><a href="javascript:__doPostBack('GridViewName','Page$9')">9</a></td><td><a href="javascript:__doPostBack('GridViewName','Page$10')">10</a></td><td><a href="javascript:__doPostBack('GridViewName','Page$11')">...</a></td>
</tr>
</table></td>
</tr>
</table>