2016-09-27 66 views
0

在我的網站中,我有一個功能Google地方的自動完成功能,但它是隱形的。我知道它是有效的,因爲如果我輸入「123 Main Street」,然後移動我的箭頭鍵並按下Enter鍵,地址信息將正常添加到輸入。Google Places Autocomplete Dropdown Invisible

我試圖加入這個到我的CSS:

.pac-container { z-index: 1051 !important; } 

但沒有奏效。

有沒有其他人有這個問題?

回答

0

我的解決方案很簡單。

我剛剛增加了Z-index。

.pac-container { z-index: 9999 !important; }