【问题标题】:jQuery Balloon plugin positionjQuery Balloon 插件位置
【发布时间】:2016-06-30 17:34:26
【问题描述】:

我正在使用 jQuery Balloon,但我在使用这个插件时遇到了一些问题。

首先,属性 position 对我不起作用 - 它始终将气球保持在我的项目的左上角,只有箭头改变了它的方向。我需要将气球准确地放在对象的中心或顶部中心(应该是默认值) - 而不是左上角。

另一个问题是箭头有时根本不显示 - 它完全随机发生 - 一次在项目上没问题,但是当我再次这样做时它不起作用 - 它完全随机发生。

有时我的链接(这是我的气球内容)不起作用。在作为属性的链接中,我有一个关于数组索引的信息。当我单击该链接时,它会更改我的数据表中的数据 - 它可以正常工作 80%。 20% 的点击不会重新加载表格 - 我所做的一切都是一样的,这是随机的。

【问题讨论】:

  • 你能创建一个简单的演示来重现这些问题吗?没有人,就很难得到帮助。
  • aviene.pl/stackoverflow - 在这里,我将部分代码放在存在位置问题的地方。我m using d3 library here to draw some svg objects - maybe thats the problem for the position property? Another problem here is that the Cluster info link doesnt 工作。 Im using here on('click') method. Im 甚至检查它是否在我的 DOM 模型上 - 在我的应用程序中它像我昨天写的那样随机运行。

标签: javascript jquery jquery-plugins balloon


【解决方案1】:

好的,我解决了气球库的整个问题。似乎位置属性不知道t work well with svg elements. I still dont 知道气球内的链接出了什么问题 - 可能s the problem with the library. From time to time the click event handler didnt 完全有效(仍然是 dont know why). The solution for my problems was changing the library. Now its d3.tip - 一切正常:)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-11-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-01-30
    • 1970-01-01
    • 1970-01-01
    • 2012-03-08
    相关资源
    最近更新 更多