Create a table in SVG

后端 未结 5 573
甜味超标
甜味超标 2020-12-03 01:11

I\'m trying to create a table-like object within an SVG document. Currently, due to the fact that SVG does not have a table element, I am using an HTML parser to go through

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-03 01:53

    I found a project on github which automatically generates an HTML-like table from a JavaScript data structure: https://github.com/cocuh/SVG-Table

    Since it does not rely on foreignObject, it's portability across browsers is much better.

提交回复
热议问题