Fancybox中的SVG

5
我需要在fancybox中使用svg图片。

<div id="data">
  <svg width="400" height="110">
    <rect width="300" height="100" style="fill:rgb(0,0,255);stroke-width:3;stroke:rgb(0,0,0)">
      Sorry, your browser does not support inline SVG.
  </svg>
  <img src="http://fc03.deviantart.net/fs71/f/2011/260/e/1/circle_png_by_xdicsii-d4a2odp.png" />
  <a id="inline" href="#data" style="margin-left:15px;">Full Screen</a>
</div>

我想要获取id为"data"的div的全屏显示。
当我点击“全屏”时,我能够获得id为"data"的div的全屏显示,但其中的svg图像却无法被渲染出来。
1个回答

0
<div style="height:inherit; width:inherit"></div>

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接