您必须更改 jQuery UI Datepicker 的 z-index 以显示在 qTip 前面。
要解决“单击日期选择器和 qTip 关闭”的问题,您需要将 qTip 配置为在“mouseout”上关闭。日期选择器位于 qTip 内部,因此一旦您越过 qTip 气泡,一旦您不“鼠标移出”qTip 内容,您就可以与内部的内容进行交互(在这种情况下单击日期)。
总之,这是我使用的qTip配置JS,“隐藏”部分也是你要注意的部分。
$(document).ready(function()
{
$("img.calendarIcon-calendarView").qtip({
content: {
url: 'ajaxContent/caledarInclude.html'
},
style: {
name: 'dark',
tip: 'topMiddle',
width: { max: 1000 },
border: {radius: 6, width: 4}
},
show: {
effect: {
type: 'slide',
length: 300
}
},
hide: {
when: 'mouseout',
fixed: true,
delay: 750,
effect: {
type: 'slide',
length: 300
}
},
position: {
corner: {
target: 'bottomMiddle',
tooltip: 'topMiddle'
}}
});
});