【问题标题】:Is there any way to support HTML tags code inside bootstrap Tooltip?有什么方法可以支持引导工具提示中的 HTML 标记代码?
【发布时间】:2017-04-07 18:54:04
【问题描述】:

最近,当我尝试在 title 属性中添加一些 html 代码时,我遇到了 Bootstrap 3 Tooltip 的问题。它向我展示了纯 html 标签代码。

问题来了

【问题讨论】:

    标签: jquery html css twitter-bootstrap twitter-bootstrap-tooltip


    【解决方案1】:

    要在工具提示上获取 html 格式的结果,您必须在初始化引导工具提示时使用 html: true

    示例: $('[data-toggle="tooltip"]').tooltip({ html: true });

    【讨论】:

      【解决方案2】:

      是的。根据您使用它的方式,您必须将html 选项指定为trueRead the docs here.

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-02-07
        • 1970-01-01
        • 1970-01-01
        • 2023-03-25
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多