html :
<div class="ellipsis" data-container="body" data-toggle="popover" data-placement="bottom"
data-content="提示内容">页面显示内容</div>
如果提示框被遮挡,记得加上:data-container="body"
JS:
$(function(){
$("[data-toggle='popover']").popover({
trigger:'hover',
html:false,
});
});
css:
.popover-title {
color: #000;
font-weight: bold;
}
.popover-content {
color: #000;
word-break: break-all;
}