在Internet Explorer中看不到Gridview的标题样式

时间:2013-08-26 10:35:42

标签: asp.net

<asp:GridView ID="gvScheduleHistory" runat="server" Width="100%" AutoGenerateColumns="False" ShowFooter="false" > <HeaderStyle BackColor="#EEEEEE" VerticalAlign="Middle" HorizontalAlign="Center" Height="30px" CssClass="search" /> <RowStyle CssClass="gridview_row" /> <PagerStyle HorizontalAlign="Right" BorderStyle="Solid" /> <Columns> <asp:BoundField DataField="EffectiveDate" HeaderText="Effective Date" ControlStyle-Width="20%" HeaderStyle-Width="20%" ItemStyle-Width="20%" />
       <HeaderStyle BackColor="#EEEEEE" VerticalAlign="Middle" HorizontalAlign="Center"
           Height="30px" CssClass="search" />
    </asp:GridView>

这是css

.search
{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #f25d23;
}

标题的边框在IE以外的所有浏览器中都可见

帮助?

0 个答案:

没有答案