62,041
社区成员
发帖
与我相关
我的任务
分享
<div style="margin:0 auto; width:1001px;">
<webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页" LastPageText="尾页"
NextPageText="下一页" PrevPageText="上一页" ShowBoxThreshold="10" SubmitButtonText="Go"
TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" NumericButtonType="Image" OnPageChanged="AspNetPager1_PageChanged" PageSize="1" CssClass="paginator" CurrentPageButtonClass="cpb" ShowPageIndexBox="Never" CustomInfoClass="info" CustomInfoHTML="第%CurrentPageIndex%页,共%PageCount%页,每页%PageSize%条" CustomInfoSectionWidth="" ShowCustomInfoSection="Right" Width="650px" Wrap="False">
</webdiyer:AspNetPager>
</div>
设置上宽度就好了
<div style="margin:0 auto;">
<webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页" LastPageText="尾页"
NextPageText="下一页" PrevPageText="上一页" ShowBoxThreshold="10" SubmitButtonText="Go"
TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" NumericButtonType="Image" OnPageChanged="AspNetPager1_PageChanged" PageSize="1" CssClass="paginator" CurrentPageButtonClass="cpb" ShowPageIndexBox="Never" CustomInfoClass="info" CustomInfoHTML="第%CurrentPageIndex%页,共%PageCount%页,每页%PageSize%条" CustomInfoSectionWidth="" ShowCustomInfoSection="Right" Width="650px" Wrap="False">
</webdiyer:AspNetPager>
</div>
.paginator { font: 11px Arial, Helvetica, sans-serif;margin:10px auto;}
.paginator a {padding: 3px 6px; color:#1D1DC8; border: solid 1px #C4DAE9;text-decoration: none;margin-right:2px}
.paginator a:visited {padding: 3px 6px; border: solid 1px #C4DAE9;text-decoration: none;}
.paginator .cpb {padding: 2px 6px;font-weight: bold; font-size: 13px;border:solid 1px #007DC1;background-color:#00A5FF;}
.paginator a:hover {color: #000;border-color:#8DB8D4;text-decoration: none;}
.paginator .info {font: 12px Arial, Helvetica, sans-serif;padding:5px 20px 5px 0;width:150px; margin: 0px;text-align:center;line-height:30px;float:right;}