如何在 ASP.NET GridView Pager 中设置活动页码的样式?

发布于 2024-09-25 08:48:38 字数 145 浏览 0 评论 0原文

所以我有 GridView 控件,我想通过 css 制作自定义 PagerStyle。

问题是我不知道如何更改指示活动页面的数字的样式(颜色)。如果我更改颜色属性,它会更改所有页码的颜色。我想分别更改活动号码和链接号码的颜色。

如何做到这一点?

So I have GridView control and I would like to make a custom PagerStyle via css.

The problem is that I do not know how to change the style (color) of number indicating an active page. If I change the color property it changes a color of all page numbers. I would like to change color for active number and link numbers separately.

How to do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

巴黎夜雨 2024-10-02 08:48:38

风格应该是这样的:

.Pager a { color: #000000; text-decoration: none; }
.Pager hover { color: #AAFF00; text-decoration: none; } 
.Pager { color: #885454; text-decoration: none; background-color: #FFF7E7;}

Style should be like this:

.Pager a { color: #000000; text-decoration: none; }
.Pager hover { color: #AAFF00; text-decoration: none; } 
.Pager { color: #885454; text-decoration: none; background-color: #FFF7E7;}
隱形的亼 2024-10-02 08:48:38

我想你可能会想:

myElement:active {color: f00;}

但我不确定..

I think you might be after:

myElement:active {color: f00;}

But I'm not sure..

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文