Insert HTML code inside SVG Text element

后端 未结 3 862
死守一世寂寞
死守一世寂寞 2020-11-30 08:51

I have an svg:text node, and I want to add HTML code inside it. Actually, my code is:



        
3条回答
  •  失恋的感觉
    2020-11-30 09:14

    You have to use the foreignObject tag, for example:

    
      
        Gmail
      
    
    

    See also here http://www.w3.org/TR/SVG/extend.html and https://developer.mozilla.org/en/SVG/Element/foreignObject

提交回复
热议问题