GridView所有页面编号。除了选定页面以外的下划线 [英] GridView all Page no. underline except selected Page

查看:131
本文介绍了GridView所有页面编号。除了选定页面以外的下划线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的GridView中,我使用以下css获取当前页面no



In my GridView I am using the following css for current page no

.cssPager span
{
    font-size: 24px;
    color: #EFEFEF;
    font-weight: bold;
}
.cssPager td
{
    padding-left: 4px;
    padding-right: 4px;
    padding-top: 1px;
    padding-bottom: 2px;
}







它只显示当前页面的下划线。但我希望剩下的页面应该有下划线。





请帮帮我

提前致谢。




It only shows underline for current page. But i want that remaining pages should have underline.


Please help me
Thanks in advance.

推荐答案

刚才我的问题已经解决了。



我只是在css中加1行



Just now my problem has been solved.

I just add 1 line in css

.cssPager a {
    text-decoration: underline;
}







现在应用上述css之后,所有页面都有下划线,当前页面除外。

非常感谢...: - )




After applying the above css now all the pages have underline except current page.
Thank you all very much..:-)


<head runat="server">
    <title>your Page</title>
   <style type="text/css">
	.pager span { color:#009900;font-weight:bold; font-size:16pt; }
  </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" DataSourceID="SqlDataSource1"  PageSize="5  >
<PagerStyle CssClass="pager" />


这篇关于GridView所有页面编号。除了选定页面以外的下划线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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