【问题标题】:Javascript tooltip unexpected text wrapping (Tooltipster)Javascript 工具提示意外的文本换行 (Tooltipster)
【发布时间】:2016-09-02 11:50:28
【问题描述】:

我正在使用 javascript 库 tooltipster,但我不知道为什么文本会在工具提示框中换行。

HTML:

<div id="spanBackground" style="background: rgba(238, 0, 140, 120);" 
 class="tooltipjs" title="Touch to interact">

Javascript:

function AnimateUpDown(toolTipElement) {
        $(toolTipElement).animate({ top: '+=20' }, 1000);
        $(toolTipElement).animate({ top: '-=20' }, 1000, AnimateUpDown);
    }

    $(document).ready(function () {
        $('.tooltipjs')
            .tooltipster(
            {
                animation: 'grow',
                arrow: false,
                //Custom trigger effectively disables the default onhover trigger
                trigger: 'custom',
                functionReady: function (instance, helper) {
                    AnimateUpDown(helper.tooltip);
                }

            });
        toolTipOpenAndClose();
    });

【问题讨论】:

    标签: javascript tooltipster


    【解决方案1】:

    有一个未解决的问题,这是第一个要检查的地方。应该在几天内修复。 https://github.com/iamceege/tooltipster/issues/600

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多