作者:手机用户2502937345 | 来源:互联网 | 2023-01-31 10:28
This question already has an answer here:
这个问题已经有了答案:
- Can I use complex HTML with Twitter Bootstrap's Tooltip? 5 answers
- 我可以使用复杂的HTML与Twitter引导的工具提示吗?5个回答
I'm trying to print a tooltip with HTML, but I need to espace some of these html. I tried something but without success.
我正在尝试用HTML打印一个工具提示,但是我需要对其中的一些HTML进行空间定位。我试过了,但没有成功。
Here is my example: http://jsfiddle.net/wrsantos/q3o1e4ut/1/
这里是我的示例:http://jsfiddle.net/wrsantos/q3o1e4ut/1/
In this example I want to escape all html inside of .
在这个例子中,我想要从 <代码> 中退出所有的html。
hover over me to see html
Javascript:
Javascript:
$('[rel="tooltip"]').tooltip();
EDIT:
编辑:
this is not a duplicate for (Can I use complex HTML with Twitter Bootstrap's Tooltip?)
这不是一个副本(我可以使用复杂的HTML和Twitter Bootstrap的工具提示吗?)
I want something like a "mixed mode" from html and non html tooltip.
我想要一些类似html和非html工具提示的“混合模式”。
In a tooltip I will have stylized content and non stylized content (the non stylized content will be inside a tag).
在工具提示中,我将使用程式化的内容和非程式化的内容(非程式化的内容将包含在标记中)。
3 个解决方案