【问题标题】:Create this SVG with Raphael用 Raphael 创建这个 SVG
【发布时间】:2012-04-24 09:10:54
【问题描述】:

我正在使用内联 SVG 元素,我想在 IE8 中运行它,谁能用 Raphael 实现它?

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="643px" height="735px" viewBox="0 0 643 735" enable-background="new 0 0 643 735" xml:space="preserve">
  <a xlink:href="img/interactive/pietraCT/00.jpg" rel="floors" title="zobacz rzut parteru">
    <g id="ct_00">
      <polygon  points="172.25,647 381.75,640.75 422,641.75 422,665 415.75,679.5 402.75,679.5 401.25,667 393.751,665 363.625,665 352.005,671.673 346,673 338.625,677 172.25,672.5"/>
    </g>
  </a>
</svg>

【问题讨论】:

标签: svg raphael


【解决方案1】:

这是回答here

简而言之,您需要使用 path() 调用,并且您需要修改您的点以遵守 Raphael 使用的约定(定义为 here

this 是使用多边形的小提琴。不过,您必须在右下角的窗口中向下滚动才能看到它。

【讨论】:

  • paper = new Raphael(0,0,1000,1000);我有一个问题 0,0,1000,1000 是什么意思?
  • 它的画布大小。 (x,y,宽度,高度)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2014-05-21
  • 2015-08-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-12-17
  • 1970-01-01
相关资源
最近更新 更多