日期:2014-05-17  浏览次数:20439 次

如何调aspnetpager里面选中页码的样式
选中的页总是红色的,我想当页码选中时跟鼠标放上去时的样式相同
CSS样式

CSS code
.flip{ width:638px; height:25px; padding:12px 0; margin:26px 0; background-color:#fff; border:1px solid #2182c7;}
.flip table{ text-align:center; line-height:25px; margin:0 auto;}
.flip a{ height:25px; padding:0 7px; color:#2182c7; font-size:14px; margin:0 5px; display:block; text-decoration:none; float:left;}
.flip a:hover{ color:#fff; background-color:#2182c7; text-decoration:none;}
.flip span{ height:25px; padding:0 5px; color:#2182c7; font-size:14px; margin:0 5px; display:block; float:left;}
.flip_t{ width:25px; padding-left:5px; height:23px; background-color:#fff; border:1px solid #2182c7; color:#2182c7; margin:0 5px; float:left; vertical-align:middle; }
.flip_b{ width:25px; height:25px; line-height:25px; background-color:#2182c7; color:#fff; border:0; margin:0 5px; float:left; }
.flip_c{ height:20px; padding:0px 5px; color:#2182c7; font-size:14px; margin:0 5px; display:block; float:left;}



HTML code
<div class="flip">
                <table border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="25">
                            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True"
                                OnPageChanging="AspNetPager1_PageChanging" PageSize="6" PageIndexBoxType="TextBox"
                                ShowPageIndexBox="Always" PrevPageText="上一页" NextPageText="下一页" FirstPageText="首页"
                                LastPageText="尾页" SubmitButtonClass="flip_b" SubmitButtonText="GO" PageIndexBoxClass="flip_t"
                                ShowCustomInfoSection="Right" CustomInfoHTML="共%PageCount%页" CustomInfoClass="flip_c"
                                CustomInfoSectionWidth="35px" UrlPaging="True" EnableUrlRewriting="true" UrlRewritePattern='/detailed_%fid%_{0}.html'
                                Wrap="False" NumericButtonCount="3" HorizontalAlign="Center" Width="100%">
                            </webdiyer:AspNetPager>
                        </td>
                    </tr>
                </table>
            </div>


------解决方案--------------------
CurrentPageButtonClass
CurrentPageButtonStyle

这两个都是设置当前页按钮样式的,详细:http://www.webdiyer.com/AspNetPagerDocs/index.html