• 请不要在回答技术问题时复制粘贴 AI 生成的内容
tctc4869
V2EX  ›  程序员

有没有 excel 转 html table 代码的工具?

  •  
  •   tctc4869 · Oct 28, 2021 · 3910 views
    This topic created in 1832 days ago, the information mentioned may be changed or developed.
    要定制表格显示某些内容,比如申请表。直接用 html 代码写太麻烦了。

    有没有方便的工具,像编辑 excel 表格或者 word 里的表格一样,插入一行插入一列,有基本的单元格合并拆分功能,写完后转成 html table 格式。

    或者能否直接在 excel 文件中编辑,然后找转换为 html table 的工具,指定区域,填写上具体到某个工作博的指定区域的几个单元格坐标。然后转换就行了

    转换后的效果不要求能还原浏览 excel 文件时里的表格外观,最低的要求是,只要能在 excel 转 html table 后,表格的单元格格式是一样就行了。

    wps 的 excel 有导出 html 功能,但是里面其中 table 表格那里有很多多余的代码
    15 replies  •  2021-12-07 11:17:21 +08:00
    beshe
    beshe
    Oct 28, 2021
    1
    pandas read_excel -> to_html ?
    murmur
    murmur
    Oct 28, 2021
    2
    很多冗余的代码自己去除不就完了?
    QingXuJiaZhi
    QingXuJiaZhi
    Oct 28, 2021
    3
    不转了,直接贴图!

    因为你每次修改 excel ,还是要再转换一次,那和修改后再截图是一样的操作步骤数。
    timethinker
    timethinker
    Oct 28, 2021
    4
    可以先转为 JSON ,然后 JSON 再转为 HTML ,可以写一个脚本自动化一下。
    lower
    lower
    Oct 28, 2021
    5
    kkFileView 这种的?
    SingeeKing
    SingeeKing
    Oct 28, 2021
    6
    1L 正解
    wolfie
    wolfie
    Oct 28, 2021
    7
    之前公司项目用过的
    /t/652066
    tctc4869
    tctc4869
    OP
    Oct 28, 2021
    8
    @wolfie 感觉不错
    lucifer69
    lucifer69
    Oct 28, 2021
    9
    libreoffice 可以命令行 excel 转 html
    murmur
    murmur
    Oct 28, 2021
    10
    @lucifer69 libreoffice 的 excel 有 bug ,拿来做基础信息填报还行,如果是复杂的财务报表会有问题
    jifengg
    jifengg
    Oct 28, 2021
    11
    “编辑 excel 表格或者 word 里的表格一样,插入一行插入一列,有基本的单元格合并拆分功能,写完后转成 html table 格式”
    这,一般的富文本编辑器都可以满足这样的表格操作,推荐 tinymce ,操作完,查看 Html 源码,就可以获得 html 了
    holystrike
    holystrike
    Oct 28, 2021❤️2
    12
    从收藏夹里翻出来这个: https://tableconvert.com/
    tctc4869
    tctc4869
    OP
    Oct 28, 2021
    13
    @lucifer69 下载了 libreOffice ,没有用命令行,直接用另存为 html ,相比 wps 的 excel ,另存为的冗余代码非常少
    hahade
    hahade
    Oct 29, 2021
    14
    试试:我的 ABC 软件工具箱 excel 转 html
    usboy
    usboy
    Dec 7, 2021❤️1
    15
    https://tableconvert.com/excel-to-html
    支持在线把 Excel 转换成 HTML 代码,可上传 Excel 文件、也可从 Excel 中复制内容到 Data Source 面板中
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1365 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 76ms · UTC 22:16 · PVG 06:16 · LAX 14:16 · JFK 17:16
    ♥ Do have faith in what you're doing.