【发布时间】:2013-07-10 10:30:03
【问题描述】:
我有一个 'li' 项目,其中包含一个弹出引导工具提示的标签。
<label class="radio dropClick centTooltip" data-toggle="tooltip" data-placement="right" title="Here are some words that will show up in the tooltip">
<input type="radio" class="centTooltip" name="cents" id="optionsRadios2" value="AA">
Hover for ToolTip!
</label>
如何在“that”和“will”之间强制换行?我不想使用工具提示的() {html : true} 选项来避免 XSS 攻击的风险。
【问题讨论】:
-
不同的问题。我不想对整个 div 应用换行,我只想插入一个单数换行符。
-
该问题的第一个答案使工具提示尊重新行。如果你插入一个单数换行符,这就是你将得到的。
标签: html css twitter-bootstrap tooltip line-breaks