bootstrap css 的 tooltip 组件,如何让提示的内容里支持 html?比如我想让提示里显示能换行和加粗的情况:
Lorem <strong>ipsum</strong> dolor sit amet, <br>consectetur adipiscing elit
<a href="#" data-toggle="tooltip" data-html="true" data-original-title="Some <strong>tooltip</strong> text!">Hover over me</a>
OptionsName: htmlType: booleanDefault: flaseDescription: Insert HTML into the tooltip. If false, jQuery's text method will be used to insert content into the DOM. Use text if you're worried about XSS attacks.> undefined> undefined
Options
Name: htmlType: booleanDefault: flaseDescription: Insert HTML into the tooltip. If false, jQuery's text method will be used to insert content into the DOM. Use text if you're worried about XSS attacks.> undefined> undefined
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
<a href="#" data-toggle="tooltip" data-html="true" data-original-title="Some <strong>tooltip</strong> text!">Hover over me</a>