Gridview 分页 样式 font-size 无效
我使用Gridview分页显示查询结果,用户反映分页字太小,不容易点击。我在pagerstyle中找到font-size,设置成XXLarger。可是没有用?请教高人如何将字变大。
我用CSS设置pagercss,字体好想也没用。 --------------------编程问答-------------------- gridview 属性里边PagerStyle- >Font- >Size
这样设置不行??
或者
自己设置样式没有用??
--------------------编程问答-------------------- 如果是GridView自带的分页,以下代码应该没问题:
.PagerCss TD A:hover { WIDTH: 20px; COLOR: black }
.PagerCss TD A:active { WIDTH: 20px; COLOR: black }
.PagerCss TD A:link { WIDTH: 20px; COLOR: black }
.PagerCss TD A:visited { WIDTH: 20px; COLOR: black }
.PagerCss TD SPAN { FONT-WEIGHT: bold; FONT-SIZE: 15px; WIDTH: 20px; COLOR: red }
GridView1.PagerStyle.Font.Size = 16; --------------------编程问答-------------------- 自己定义个分页模板 想怎么写就怎么写
<PagerTemplate>
<div class="pagination">
第<asp:Label id="lblPageIndex" runat="server" CssClass="pcount" text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>' />页
共/<asp:Label id="lblPageCount" runat="server" CssClass="pcount" text='<%# ((GridView)Container.Parent.Parent).PageCount %>' />页
<asp:linkbutton id="btnFirst" runat="server" causesvalidation="False" commandargument="First" commandname="Page" text="首页" />
<asp:linkbutton id="btnPrev" runat="server" causesvalidation="False" commandargument="Prev" commandname="Page" text="上一页" />
<asp:linkbutton id="btnNext" runat="server" causesvalidation="False" commandargument="Next" commandname="Page" text="下一页" />
<asp:linkbutton id="btnLast" runat="server" causesvalidation="False" commandargument="Last" commandname="Page" text="尾页" />
到第<asp:TextBox runat="server" ID="inPageNum" CssClass="pageinput"></asp:TextBox>页
<asp:Button ID="Button1" CommandName="go" Text="go" runat="server" CssClass="button" />
</div>
</PagerTemplate> --------------------编程问答-------------------- 看看是不是其他样式有干扰 --------------------编程问答-------------------- 支持3楼的,因为我的就是3楼这样做的,很灵活实用 --------------------编程问答--------------------
找了半天也没找到! --------------------编程问答--------------------
那系统自带的怎么办?这个要自己写分页函数么? --------------------编程问答--------------------
你看生成的html代码什么标签,定义标签的CSS就行了啊。
补充:.NET技术 , 组件/控件开发