日期:2014-05-20  浏览次数:20389 次

跪求gridview标题居中问题!!!
<div id="divdata" style="overflow:scroll;" align="center">
  <asp:GridView ID="GridView1" runat="server" CellPadding="4" GridLines="None"
  style="line-height:22px;text-align:center" ForeColor="#333333" >
  <RowStyle BackColor="#EFF3FB" />
  <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
  <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
  <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
  <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" HorizontalAlign="Center"/>
  <EditRowStyle BackColor="#2461BF" />
  <AlternatingRowStyle BackColor="White" />
  </asp:GridView>
  </div>
 


<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" HorizontalAlign="Center"/>
调了就是居中不了,怎么回事啊?

------解决方案--------------------
不明白需求不清晰 可以用图形来表示下吗