<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以外的所有浏览器中都可见
帮助?