<分区>
<分区>
我有一个“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”之间强制换行?我不想使用工具提示的 () {html : true}
选项来应对 XSS 攻击的风险。
最佳答案
我发现使用上面的半重复的正确答案是将 CSS 设置为:
.tooltip-inner {
white-space: pre-wrap;
min-width: 100px;
}
关于html - 在 Bootstrap 工具提示中强制换行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17605450/