给AspNetPager(显示共多少页,多少条记录 每页几行)设置样式
2个回答
展开全部
<webdiyer:AspNetPager ID="AspNetPager" runat="server" CssClass="pager" ShowPageIndexBox="Never" NumericButtonCount="6" UrlPaging="true" CustomInfoHTML="页码/页数 %CurrentPageIndex%/%PageCount% 总行数:%RecordCount%" ShowCustomInfoSection="Left" FirstPageText="首页" CurrentPageButtonClass="cpb" LastPageText="末页" NavigationButtonType="Image" NextPageText="下页" PrevPageText="上页" AlwaysShow="true" PageSize="8" CustomInfoClass='cis' >
</webdiyer:AspNetPager> <div class="ar">每页8行</div>
<%-- <webdiyer:AspNetPager ID="AspNetPager1" runat="server" Width="100%" NumericButtonCount="6" UrlPaging="true" NumericButtonTextFormatString="[{0}]" CustomInfoHTML="第 <font color='red'><b>%CurrentPageIndex%</b></font> 页共 %PageCount% 页 显示 %StartRecordIndex%-%EndRecordIndex% 条" ShowCustomInfoSection="left"
FirstPageText="首页" LastPageText="末页" NextPageText="下页" PrevPageText="上页" Font-Names="Arial" BackColor="#F8B500" AlwaysShow="true" ShowInputBox="Always" SubmitButtonText="跳转" SubmitButtonStyle="botton" >
</webdiyer:AspNetPager>--%>
<%--<webdiyer:AspNetPager ID="AspNetPager1" runat="server" PageSize="15" style="font-size:14px;" HorizontalAlign="Right" NumericButtonCount="6" NumericButtonTextFormatString="[{0}]" CustomInfoHTML="第 <font color='red'><b>%CurrentPageIndex%</b></font> 页共 %PageCount% 页 显示 %StartRecordIndex%-%EndRecordIndex% 条" InputBoxStyle="width:24px; height:14px;" ShowInputBox="Always" SubmitButtonText=" GO " FirstPageText="[首页]" PrevPageText="[上页]" NextPageText="[下页]" LastPageText="[末页]" TextBeforeInputBox="转到第" TextAfterInputBox="页 " PagingButtonSpacing="10px" width="100%" ShowCustomInfoSection="Left" UrlPaging="true"></webdiyer:AspNetPager>
// NumericButtonCount="6" 显示页码的个数
// NumericButtonTextFormatString="[{0}]" 页码显示的格式
// ShowCustomInfoSection="left" 显示左边的(第几页、共几页、显示几条)
// TextBeforeInputBox="转到第" InputBox前面显示的字
// TextAfterInputBox="页" InputBox后面显示的字
// PagingButtonSpacing="10px" 字与字间的距离
--%> #AspNetPager{ width:70%; float:left; margin-left:15%;}
.pager{margin-left:-10%;}
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询