Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net GridView分页链接样式_Asp.net - Fatal编程技术网

Asp.net GridView分页链接样式

Asp.net GridView分页链接样式,asp.net,Asp.net,我的页面中有一个实现分页的gridview。我需要去掉自动出现在分页链接中的下划线 这是我的密码: <asp:GridView ID="GridView1" runat="server" CssClass="grid" PagerStyle-Font-Underline="false" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging"> &l

我的页面中有一个实现分页的gridview。我需要去掉自动出现在分页链接中的下划线

这是我的密码:

<asp:GridView ID="GridView1" runat="server"  CssClass="grid" PagerStyle-Font-Underline="false"  AllowPaging="True"  OnPageIndexChanging="GridView1_PageIndexChanging">         

               <HeaderStyle BackColor="#E6E6E6" Font-Bold="True" ForeColor="#000000" />
              <PagerStyle CssClass="mpager"  HorizontalAlign="Right" />

                </asp:GridView>

我需要做什么?

必须设置PagerStyle才能更改寻呼机行的外观。要删除下划线,请设置CssClass

<PagerStyle CssClass="nounderline" />

然后定义一个选择器,从寻呼机行中包含的超链接中删除下划线

<style type="text/css">
    .nounderline a
    {
        text-decoration:none;
    }
</style> 

.名词a
{
文字装饰:无;
}

您的gv源代码未显示,请尝试以下操作:

.mpager a 
{
    text-decoration: none;
}

span元素包含所选页面,该页面不是锚定,因此这不是您想要的目标。

我为缺少的代码进行了编程…Steve我尝试了您的方法,但没有成功。。
.mpager a 
{
    text-decoration: none;
}