【发布时间】:2015-02-17 22:14:00
【问题描述】:
我为我的 listview 使用了 datapager。如果用户在第二页,我希望第二个数字应该突出显示。 datapager 代码在这里
.pagination {
font-family: 'signika_negativeRegular', sans-serif;
font-size: 13px;
}
.pagination a,
.pagination strong {
background: #fff;
/* display: inline-block; */
margin-right: 3px;
padding: 4px 12px;
text-decoration: none;
line-height: 1.5em;
/* -webkit-border-radius: 3px; */
-moz-border-radius: 3px;
/* border-radius: 3px; */
border: 1px solid#ccc;
}
.pagination a:hover {
background-color: red;
color: #fff;
}
.pagination a:active {
background: #ccc;
padding: 4px 6px;
}
.pagination strong {
border: 1px solid #ccc;
font-size: 13px;
color: #cf060d;
}
HTML:
<div class="pagination">
<asp:DataPager ID="dpNews" runat="server" PagedControlID="lstNews" PageSize="3">
<Fields>
<asp:NextPreviousPagerField ButtonType="Link" ShowFirstPageButton="false" ShowPreviousPageButton="true" ShowNextPageButton="false" />
<asp:NumericPagerField ButtonType="Link" />
<asp:NextPreviousPagerField ButtonType="Link" ShowNextPageButton="true" ShowLastPageButton="false" ShowPreviousPageButton="false" />
</Fields>
</asp:DataPager>
</div>
请帮忙
【问题讨论】:
-
我认为 Paulie_D 暗示这已经被问过很多次了。发帖前请先研究一下这个话题
-
@jbutler483:是的,我知道,会的。