版本:spread 8
环境:vs2013
问题:在IE11中,spread的行高度设置为(DefaultRowHeight="24px"),但是在IE11中,画面显示的行高度始终为"24+1=25px",IE8中显示为正常的。同样的代码为什么在IE11中行显示高度为25px,IE8中显示的行高为24px。
有什么办法让IE11中显示的高度仍然为24px
代码如下:
- <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="WebApplication9.WebForm1" %>
- <%@ Register assembly="FarPoint.Web.SpreadJ" namespace="FarPoint.Web.Spread" tagprefix="FarPoint" %>
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <title></title>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
-
- <FarPoint:FpSpread ID="FpSpread1" runat="server" BorderColor="#A0A0A0" BorderStyle="Solid" BorderWidth="1px" Height="200" Width="400">
- <CommandBar BackColor="#F6F6F6" ButtonFaceColor="Control" ButtonHighlightColor="ControlLightLight" ButtonShadowColor="ControlDark">
- </CommandBar>
- <Sheets>
- <FarPoint:SheetView SheetName="Sheet1" DefaultRowHeight="24" ColumnHeaderHeight="50" >
- </FarPoint:SheetView>
- </Sheets>
- </FarPoint:FpSpread>
-
- </div>
- </form>
- </body>
- </html>
复制代码
IE11中用F12的DOM Explorer中调试解析后代码:
- <tr style="height: 25px;" fpspread="r" fpkey="0">
- <td class="s0s2" fpcelltype="GeneralCellType">&nbsp;</td><td class="s0s2" fpcelltype="GeneralCellType">&nbsp;</td><td class="s0s2" fpcelltype="GeneralCellType">&nbsp;</td><td class="s0s2" fpcelltype="GeneralCellType">&nbsp;</td>
- </tr>
复制代码 |
|