找回密码
 立即注册

QQ登录

只需一步,快速开始

edsoft

论坛元老

40

主题

88

帖子

1万

积分

论坛元老

积分
11438

活字格认证

edsoft
论坛元老   /  发表于:2012-3-21 14:37  /   查看:4053  /  回复:3
怎么设置图片正好填充整个图片
<style>.CssStyle1
{
   FONT: 700 12pt verdana; COLOR: yellow
}
</style>

FarPoint.Web.Spread.ImageCellType imagecell = New FarPoint.Web.Spread.ImageCellType();
imagecell.ImageUrl = "img\\fplogo.jpg";
imagecell.ImageAlign=System.Web.UI.WebControls.ImageAlign.Right;
imagecell.TextOnRight = true;
imagecell.CssClass = "CssStyle1";
FpSpread1.Sheets[0].Cells[0, 0].CellType = imagecell;
单元格大小有限 怎么设置图片正好为单元格大小填充进去 asp。net

3 个回复

倒序浏览
ZenosZeng讲师达人认证 悬赏达人认证
超级版主   /  发表于:2012-3-21 15:45:00
沙发

回复 1# edsoft 的帖子

请参考下面的CSS样式设置:
  1. <style type="text/css">
  2.     .CssStyle1
  3.     {
  4.         font: 700 12pt verdana;
  5.         color: yellow;
  6.     }
  7.     .CssStyle1 img
  8.     {
  9.         width: 100%;
  10.     }
  11. </style>
复制代码
FarPoint.Web.Spread.ImageCellType imagecell = new FarPoint.Web.Spread.ImageCellType();
            imagecell.ImageUrl = "img\\fplogo.bmp";
            imagecell.ImageAlign = System.Web.UI.WebControls.ImageAlign.Right;
            imagecell.TextOnRight = true;
            imagecell.CssClass = "CssStyle1";
            FpSpread1.Sheets[0].Cells[0, 0].CellType = imagecell;
回复 使用道具 举报
edsoft
论坛元老   /  发表于:2012-3-21 16:19:00
板凳

回复 2# dof 的帖子

可以谢谢
回复 使用道具 举报
ZenosZeng讲师达人认证 悬赏达人认证
超级版主   /  发表于:2012-3-21 16:21:00
地板
不客气 :share:
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部