Create a table in SVG

后端 未结 5 561
甜味超标
甜味超标 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:44

    Here is an example showing an SVG foreignobject which contains a tabular layout of nested SVG elements. It only works in Chrome though.

    It includes an HTML table layout and a flexbox layout using div elements.

    A jsfiddle is here.

    
    
        
            
                
                
            
        
        
    
            
                

提交回复
热议问题