【发布时间】:2011-07-19 16:49:57
【问题描述】:
我想要这个Fill SVG element with with a background-image with an offset,但使用的是 Raphael JS。
显示带有背景图像的矩形没有偏移很容易。
canvas.rect(
positionx, positiony, width, height
).attr(
{fill: "url('/content/image_set.gif')"}
);
上面的代码将只显示图像的左上角。我想移动它并显示它的另一部分。我该怎么做?
【问题讨论】:
标签: html image svg background-image raphael