你好,不好意思,没有重现你的问题,我通过以下代码设置不需双击就可以看到图片:
后台:
- FarPoint.Web.Spread.TextCellType textType = new FarPoint.Web.Spread.TextCellType();
- textType.CssClass = "test";
- this.FpSpread1.ActiveSheetView.Cells[0, 0].CellType = textType;
- this.FpSpread1.ActiveSheetView.Rows[0].Height = 100;
- this.FpSpread1.ActiveSheetView.Columns[0].Width = 100;
复制代码 前台:
- <style type="text/css">
- .test{ background:url('Alien 1.bmp')}
- </style>
复制代码 |