173844862技术交流群.
代码看下
代码应该没问题,是不是浏览器兼容的问题啊?
<asp:GridView ID="gvMem" runat="server" AutoGenerateColumns="False" OnRowDeleting="gvMem_RowDeleting"
OnRowDataBound="gvDep_RowDataBound" OnRowUpdating="gvMem_RowUpdating"
OnRowEditing="gvMem_RowEditing" OnRowCancelingEdit="gvMem_RowCancelingEdit">
<Columns>
<asp:BoundField ReadOnly="True" DataField="xitong" HeaderText="系统编号" >
<ItemStyle HorizontalAlign="Center" CssClass="hidden" />
<FooterStyle CssClass="hidden" />
<HeaderStyle Width="80px" CssClass="hidden" />
</asp:BoundField>
<asp:BoundField ReadOnly="True" DataField="ceshi" HeaderText="流水号" >
<ItemStyle HorizontalAlign="Center" Height="32px"/>
<HeaderStyle Width="80px" />
</asp:BoundField>
<asp:BoundField ReadOnly="True" DataField="songhuodanhao" HeaderText="送货单号" >
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle Width="80px" />
</asp:BoundField>
<asp:BoundField ReadOnly="True" DataField="kehu" HeaderText="客户" >
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle Width="140px" />
</asp:BoundField>
<asp:BoundField ReadOnly="True" DataField="riqi" HeaderText="送货日期" >
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle Width="80px" />
</asp:BoundField>
<asp:BoundField ReadOnly="True" DataField="WLbianhao" HeaderText="物料编号" >
<ItemStyle HorizontalAlign="Center" CssClass="hidden" />
<FooterStyle CssClass="hidden" />
<HeaderStyle Width="80px" CssClass="hidden" />
</asp:BoundField>
<asp:BoundField ReadOnly="True" DataField="pinmingguige" HeaderText="品名规格" >
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle Width="220px" />
</asp:BoundField>
<asp:BoundField ReadOnly="True" DataField="zhongliang" HeaderText="送货重量" >
<ControlStyle Width="80px" />
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle Width="80px" />
</asp:BoundField>
<asp:BoundField DataField="danjia" HeaderText="单价" >
<ControlStyle Width="50px" />
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle Width="50px" />
</asp:BoundField>
<asp:BoundField DataField="jine" HeaderText="金额" >
<ControlStyle Width="50px" />
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle Width="50px" />
</asp:BoundField>
<asp:BoundField ReadOnly="True" DataField="danwei" HeaderText="单位" >
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle Width="40px" />
</asp:BoundField>
<asp:BoundField DataField="beizhu" HeaderText="备注" >
<ControlStyle Width="150px" />
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle Width="150px" />
</asp:BoundField>
<asp:CommandField UpdateText="保存" SelectText="选择" CancelText="撤消" DeleteText="删除"
EditText="编辑" ShowEditButton="True">
<HeaderStyle Width="80px" />
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
</asp:CommandField>
<asp:CommandField SelectText="选择" CancelText="撤消" ShowDeleteButton="True" DeleteText="删除"
EditText="编辑">
<HeaderStyle Width="40px" />
<ItemStyle HorizontalAlign="Center" />
</asp:CommandField>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="LinkButton2" runat="server"
CommandArgument='<%# Eval("xitong") %>' onclick="LinkButton2_Click">作 废</asp:LinkButton>
</ItemTemplate>
<HeaderStyle Width="40px" />
<ItemStyle HorizontalAlign="Center" />
</asp:TemplateField>
</Columns>
<EmptyDataTemplate>
查无数据
</EmptyDataTemplate>
<HeaderStyle HorizontalAlign="Center" BackColor="ActiveBorder" Height="30px" Font-Size="13pt" />
<EmptyDataRowStyle ForeColor="Red" />
<RowStyle Font-Size="11pt" BorderColor="Black" Height="25px" />
<AlternatingRowStyle BackColor="#E1EEF3" />
<FooterStyle ForeColor="Red" HorizontalAlign="Right" Font-Size="14pt" Font-Bold="true" />
</asp:GridView>
看生成后的html,然后给你的表格重新加一下样式吧,指定border之类的。