回复 3楼guxinghan的帖子
你好,
出现问题的原因是 Spread 高度设置成了 百分比 样式,但其父容器没有固定高度。
一定要通过 百分比方式设置 Spread 尺寸吗?
- <div style="height:1000px;width=1000px;">
-
- <FarPoint:FpSpread ID="FpSpread1" runat="server" BorderColor="Black"
- BorderStyle="Solid" BorderWidth="1px" Height="60%" Width="100%">
- <commandbar backcolor="Control" buttonfacecolor="Control"
- buttonhighlightcolor="ControlLightLight" buttonshadowcolor="ControlDark">
- </commandbar>
- <sheets>
- <FarPoint:SheetView SheetName="Sheet1">
- </FarPoint:SheetView>
- </sheets>
- </FarPoint:FpSpread>
- <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="复制样式" />
- <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="复制数据" />
- <asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="设置颜色" /><asp:TextBox runat="server" ID="ColorIndex"></asp:TextBox>
- </div>
复制代码
谢谢 |