引导工具提示中有什么方法可以支持HTML标签代码? [英] Is there any way to support HTML tags code inside bootstrap Tooltip?

查看:110
本文介绍了引导工具提示中有什么方法可以支持HTML标签代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,当我试图在title属性内添加一些html代码时,我遇到了Bootstrap 3 Tooltip的问题.它向我展示了简单的html标签代码.

Recently I'm facing problem with Bootstrap 3 Tooltip when I'm trying to add some html code inside title attribute. It shows me plain html tags code.

这是问题

推荐答案

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

For getting html formatted result on tooltip you have to use html: true when initialize the bootstrap tooltip

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

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

这篇关于引导工具提示中有什么方法可以支持HTML标签代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆