jquery鼠标放上去显示悬浮层 Tips
html
<div class="input-group-addon" style="border: 0;">
<a
id="time_range_fa"
href="#"
class="fa fa-info-circle col-sm-1"
style="color: #3c8dbc;font-size: 14px;"
data-toggle="popover"
data-placement="bottom"
data-trigger="hover">
</a>
</div>
js
$(() => {
var tip = $('#time_range_fa');
$(tip).popover({
html: true,
title: '默认查询时间:',
delay: {show: 500, hide: 1000},
content: function () {
return '2017-12-01 至 2017-12-31';
}
});
})