谷歌地图bootstrap模态堆栈

问题描述:

我有问题在Bootstrap模式下显示谷歌地图。见下面谷歌地图bootstrap模态堆栈

you can see in this pict

有谁知道这是为什么?

+1

请告诉我们代码。 –

+0

删除不相关的标签,整理。 –

+0

谢谢你的所有答案先生 –

我不知道什么是错的,但我尝试解决你的问题。 这是替换模式,你可以用这个代码来替换地图。

$.fn.modal.Constructor.prototype.enforceFocus = function() { 
    modal_this = this 
    $(document).on('focusin.modal', function (e) { 
     if (modal_this.$element[0] !== e.target && !modal_this.$element.has(e.target).length 
     // add whatever conditions you need here: 
     && 
     !$(e.target.parentNode).hasClass('cke_dialog_ui_input_select') && !$(e.target.parentNode).hasClass('cke_dialog_ui_input_text')) { 
      modal_this.$element.focus() 
     } 
    }); 
}; 
+0

这是一个老问题先生。 但好吧,我会尝试。 –

+0

它不能先生。 –

+0

尝试再次使用按钮或其他方式调用以再次替换地图。 –