找回密码
 立即注册

QQ登录

只需一步,快速开始

AlexZ 讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2020-9-25 14:34  /   查看:2575  /  回复:0
本帖最后由 AlexZ 于 2020-9-25 14:36 编辑

在 SpreadJS V14 新版本中,用户可以调用 toHtml 接口,将一个区域中的内容直接生成为 HTML 代码,方便将表格中的内容快速进行复制,转移到其他应用中,如邮件正文,具体效果如下:

image.png255264281.png

目前支持的内容有以下:
  • cell text
  • cell span
  • cell style
    • backColor
    • foreColor
    • font
    • vAlign
    • hAlign
    • borderLeft
    • borderRight
    • borderTop
    • borderBottom
    • textDecoration
  • gridline
  • row height / column width



* borderLeft / borderRight / borderTop / borderBottom 四个属性,将按照下表转换

GC.Spread.Sheets.LineStyle
CSS border-style
CSS border-width(pt)
dashDotdashed0.5
dashDotDotdashed0.5
dasheddashed0.5
dotteddotted0.5
doubledouble1.5
emptynone0
hairdotted0.5
mediumsolid1
mediumDashDotdashed1
mediumDashDotDotdashed1
mediumDasheddashed1
slantedDashDotdashed1
thicksolid1.5
thinsolid0.5




0 个回复

您需要登录后才可以回帖 登录 | 立即注册
返回顶部