Drawing arrows on an HTML page to visualize semantic links between textual spans

前端 未结 10 1544
轮回少年
轮回少年 2020-11-30 18:56

I have an HTML page with some textual spans marked up something like this:

...
p50
...


        
10条回答
  •  天命终不由人
    2020-11-30 19:26

    As others have mentioned, Javascript and html are not good tools for this sort of thing.

    John Resig wrote an implementation of Processing.org in JavaScript. It uses the canvas element, so it will work in modern versions of Firefox, but it will not work in all browsers. If you only care about Firefox, this would probably be the way to go.

    You might be able to use SVG, but again, this is not supported in all browsers.

提交回复
热议问题