我有一个'li‘项,它包含一个弹出Bootstrap工具提示的标签。
<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”之间强制换行?我不想使用tooltip的() {html : true}选项来规避XSS攻击的风险。
发布于 2013-07-12 08:56:33
使用上面的半副本,我找到了一个不错的答案,就是将CSS设置为:
.tooltip-inner {
white-space: pre-wrap;
min-width: 100px;
}https://stackoverflow.com/questions/17605450
复制相似问题