回复 2楼jd6061的帖子
设置方法如下:
前台 CSS 代码:
- <style>
- .CssStyle1 a:link {color:white}
- .CssStyle1 a:hover {color:blue}
- .CssStyle1 a:visited {color:blue;}
- </style>
复制代码
后台代码:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- {
- return;
- }
- FarPoint.Web.Spread.HyperLinkCellType hlcell = new FarPoint.Web.Spread.HyperLinkCellType();
- hlcell.NavigateUrl = "http://www.fpoint.com";
- hlcell.Target = "self";
- hlcell.CssClass = "CssStyle1";
- FpSpread1.ActiveSheetView.Cells[0, 0].CellType = hlcell;
- FpSpread1.ActiveSheetView.Columns[0].Width = 150;
- }
复制代码 |