【问题标题】:Font-Bold of HeaderStyle in gridviewgridview中HeaderStyle的Font-Bold
【发布时间】:2013-01-12 17:09:47
【问题描述】:

我在 asp.net 中将此代码用于 gridview 格式:

<FooterStyle BackColor="Tan" />
<HeaderStyle BackColor="Tan" Font-Bold="False" Font-Size="11px" />
<PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
    HorizontalAlign="Center" />
<SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
<SortedAscendingCellStyle BackColor="#FAFAE7" />
<SortedAscendingHeaderStyle BackColor="#DAC09E" />
<SortedDescendingCellStyle BackColor="#E1DB9C" />
<SortedDescendingHeaderStyle BackColor="#C2A47B" />

我想要 HeaderStyle 的 Font-Bold = false:

<HeaderStyle BackColor="Tan" Font-Bold="False" Font-Size="11px" />

但它在浏览器中不是假的,并且 HeaderStyle 中的显示字体是粗体,

【问题讨论】:

    标签: c# asp.net gridview


    【解决方案1】:

    我用这个:

    HeaderStyle-Font-Bold="false"
    

    没关系:-)

    【讨论】:

      猜你喜欢
      • 2019-11-28
      • 1970-01-01
      • 1970-01-01
      • 2013-06-20
      • 1970-01-01
      • 1970-01-01
      • 2016-10-16
      • 2013-04-15
      • 1970-01-01
      相关资源
      最近更新 更多