如何在页面导航链接之间腾出空间 [英] How to make space between page navigation links

查看:56
本文介绍了如何在页面导航链接之间腾出空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用网格视图,我设置了下一个和上一个链接来导航网格视图,所以当我进入网格视图的中间页面时,前一个和下一个链接彼此靠近,看起来不像一个单词,这不好。请帮忙如何在他们之间腾出空间



低于我的代码



请帮助



我尝试过:



I am using grid view and I set next and previous link to navigate the grid view, so when I go to middle page of grid view the previous and next links close to each other which looks not as one word and this not good . please help how make space between them

below my code

please help

What I have tried:

<pagersettings mode="NextPrevious" previouspagetext="previous" nextpagetext="next" lastpagetext="" />  

<pagerstyle cssclass="myclass" />


css文件中的
我把


in css file I put

tr.myclass a{padding-right:20px;}

推荐答案

在我的项目中,我添加了一个网格视图并设置如下设置,它对我来说很好,也希望你:

in my project, I have added a grid view and set the settings like below, it works fine for me, hope for you too :
<asp:gridview id="gvProduct" cssclass="FormFont" runat="server" cellpadding="4" forecolor="#333333" gridlines="None" autogeneratecolumns="False" datasourceid="ldsProduct" width="100%" onrowcommand="gvProduct_RowCommand" allowpaging="true" pagesize="15" onpageindexchanging="OnPaging" pagersettings-mode="NumericFirstLast" pagersettings-firstpagetext="first page" 

PagerSettings-LastPageText="last page" PagerSettings-PageButtonCount="6"

<alternatingrowstyle backcolor="White" />
<columns>
  // your columns
</columns>
</asp:gridview>





最佳问候



best regards


这篇关于如何在页面导航链接之间腾出空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆