ndndb
V2EX  ›  问与答

像这个神奇的双语对照翻译网站是怎么实现的

  •  
  •   ndndb · May 1, 2021 · 1834 views
    This topic created in 1843 days ago, the information mentioned may be changed or developed.
    支持上传静态 HTML,可以多人合作,翻译后能看到结果。翻译并排显示,同步滚动,有点优秀。

    https://yiyibooks.cn/xx/python_352/index.html
    3 replies    2021-12-05 19:20:39 +08:00
    sillydaddy
        1
    sillydaddy  
       May 2, 2021
    确实有点优秀。
    ndndb
        2
    ndndb  
    OP
       May 8, 2021
    大佬们指点一下啊,怎么搞一个类似的翻译
    liuser666
        3
    liuser666  
       Dec 5, 2021   ❤️ 1
    检查一下前端代码就能看出来了,遍历带原文的节点,每个带上一个 id 标记,然后右边复制一份原文,id 改为原 id+任意字段.这样就对应上了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3747 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 04:16 · PVG 12:16 · LAX 21:16 · JFK 00:16
    ♥ Do have faith in what you're doing.