Drawing over an image using Raphael.js

后端 未结 2 985
遇见更好的自我
遇见更好的自我 2020-12-31 19:38

Can I put a Raphael.js canvas over an IMG element? What should I do make this layout work?

2条回答
  •  鱼传尺愫
    2020-12-31 19:58

    z-index:2 or some high number for the raphael "paper" div (aka your raphael canvas... which you refer to by:

    var paper = Raphael('somediv', 100, 400)

    so just go to your css and at #somediv make sure you put it's z-index lower and then put your text div's z-index higher...

提交回复
热议问题