回复 1楼jd6061的帖子
你好,
后台代码:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- {
- return;
- }
- FarPoint.Web.Spread.TextCellType tc = new FarPoint.Web.Spread.TextCellType();
- tc.ShowEditor = true;
- tc.EditorCssClass = "test";
- this.FpSpread1.ActiveSheetView.Cells[0, 0].CellType = tc;
- }
复制代码
前台代码:
- <style type="text/css">
- .test {
- width:10px!important;
- background-color:red;
- }
- </style>
复制代码 |