2017-05-31 65 views
1

我有問題在Bootstrap模式下顯示谷歌地圖。見下面谷歌地圖bootstrap模態堆棧

you can see in this pict

有誰知道這是爲什麼?

+1

請告訴我們代碼。 –

+0

刪除不相關的標籤,整理。 –

+0

謝謝你的所有答案先生 –

回答

1

我不知道什麼是錯的,但我嘗試解決你的問題。 這是替換模式,你可以用這個代碼來替換地圖。

$.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

嘗試再次使用按鈕或其他方式調用以再次替換地圖。 –