ImageCellType单元格问题
设置单元格类型是ImageCellType,怎么设置图片自适应单元格大小?<style>
.CssStyle1 {
FONT: 700 12pt verdana;
COLOR: yellow
}
.CssStyle1 img{
width: 100%;
}
</style>
FarPoint.Web.Spread.ImageCellType imagecell = new FarPoint.Web.Spread.ImageCellType();
imagecell.ImageUrl = "aaa.png";
imagecell.ImageAlign = System.Web.UI.WebControls.ImageAlign.Right;
imagecell.TextOnRight = true;
imagecell.CssClass = "CssStyle1";
FpSpread1.Sheets.Cells.CellType = imagecell;
没有直接属性设置,可以用css修改部分属性。
页:
[1]