EasyUI 鼠标经过 显示气泡一例

yundejia

关注

阅读 149

2022-02-25


$(function(){
$('#contacts').tooltip({
position: 'bottom',
content: '<c:forEach items="${record.contacts}" var="staff">${staff.name}-${staff.jobRole }-${staff.tel }<br></c:forEach>',
onShow: function(){
$(this).tooltip('tip').css({
backgroundColor: 'white',
borderColor: 'black'
});
var t = $(this);
t.tooltip('tip').unbind().bind('mouseenter', function(){
t.tooltip('show');
}).bind('mouseleave', function(){
t.tooltip('hide');
});
}
});
});


精彩评论(0)

0 0 举报