0
我試圖按照與我的選擇按鈕不同的方式調整分頁按鈕的樣式。我用於選擇按鈕的選擇器也適用於分頁按鈕:樣式頁按鈕與選擇按鈕不同
.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>
發表您的HTML .. –
看到我的編輯,添加HTML – muttley91
你的第二個選擇似乎在這裏工作:http://jsfiddle.net/TCSrf/ – Adrift