Bootstrap Navbar overlapping Google places autocomplete dropdown

霸气de小男生 提交于 2019-12-02 11:27:08

Change the autocomplete z-index or move the pac-container down.

Bootstrap's navbars z-index is 1000, navbar-fixed-top is 1030.

The Autocomplete z-index is also 1000 so you'll have to increase it.

https://google-developers.appspot.com/maps/documentation/javascript/places-autocomplete#style_autocomplete

is a great resource that let you change autocomplete elements styles in css

make the google class pac-container with z-index greater than the navbar.

.pac-container{
 z-index: 8000;
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!