2012-07-08 6 views
6

例の内部でHTMLのdivを埋め込むには? SVG要素の内部でDIVを取得するにはどうすればよいですか?どのようにSVG

答えて

1

@Stasikで述べたように、foreignObjectを使うことができます。

例:より抜粋

<svg> 
    <foreignObject width="100" height="50" 
       requiredExtensions="http://www.w3.org/1999/xhtml"> 
     <!-- XHTML content goes here --> 
     <body xmlns="http://www.w3.org/1999/xhtml"> 
     <p>Here is a paragraph that requires word wrap</p> 
     </body> 
    </foreignObject> 
<svg> 

https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject

関連する問題