Я могу поместить холст Raphael.js по IMG
элемент? Что должно я действительно делать эту разметку?
Simply position the Raphaël canvas over the top of the image element using normal CSS techniques:
#wrapper {
position: relative;
padding: 0;
outline: 1px solid #999;
}
#wrapper img {
position: absolute;
top: 0;
left: 0;
}
#canvas {
position: absolute;
top: 0;
left: 0;
}
Then nest your elements like this:
<div id="wrapper">
<img src="myimage.jpg">
<div id="canvas">
</div>
</div>