拉斐尔论文编辑
我之前发过类似的问题。我需要在我的页面中重复使用拉斐尔论文。我在一个页面上有多个纸质对象,每个页面上都有一些对象。对于我之前的问题,我需要清除纸张并添加不同的对象。我设法通过清空 div 并将其作为 Raphael 论文创建的第一个参数来做到这一点。现在我有一个问题,因为我只在纸张的另一个对象上显示悬停矩形。我的页面中有多篇论文。由于我在论文中重复使用该变量,因此它可能包含错误的论文。在这种情况下,我的悬停会显示在该纸上!为此,我需要确保我的悬停处理程序拾取正确的纸张。我可以获得为其创建论文的 div,但无法检索分配给它的论文! 请帮我解决这个问题,欢迎任何建议。 卡维塔
I have posted a similar question before. I need to reuse a raphael paper in my page. I have multiple paper objects on a single page with some objects on each. In case of my previous question i needed to clear the paper and add different objects. I managed to do that by emptying the div and giving it as the first argument to Raphael paper creation. Now I have a problem as i am showing only a hover rect on another object of the paper. There are multiple papers in my page. Since I am reusing the variable for papers it is possible that it contains the wrong paper. In such case my hover is shown on that paper! For this I need to ensure that my hover handler picks up the proper paper. I can get the div for which I have created the paper but I cannot retrieve the paper i assigned to it!!
Please help me with this, Any suggestions are welcome.
Kavita
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不确定这个问题是否来自您(这些看起来像两个不同的“kavita”),但答案 这里可能会有所帮助。
Not sure if this question is from you or not (these look like two different 'kavita'), but the answers here may help.