你如何样式在谷歌商家信息自动填充API下拉? [英] How do you style the dropdown on Google Places Autocomplete API?
问题描述
我们需要调整使用谷歌地方时,显示的自动完成地方建议下拉的造型/地图API自动完成
We need to tweak the styling of the dropdown that shows the autocomplete place suggestions when using the Google Places/Maps Autocomplete API.
有谁知道这是否可能?如果是这样,我想我们只需要知道CSS类名/标识。
Does anyone know if this is even possible? If so, I guess we just need to know the CSS classnames/IDs.
有位我指的是这里的一个屏幕抓取:
There's a screen grab of the bit I am referring to here:
推荐答案
如果你使用Firebug(如您的问题...的评论中提及),你看到的自动完成结果的容器与类DIV PAC-容器等建议,都在里面它作为带班的DIVPAC-项。所以只是风格的CSS。
If you use firebug (as mentioned in a comment to your question...) you see that the container with the autocomplete results is a DIV with the class "pac-container" and the suggestions are inside it as a DIV with the class "pac-item". so just style with CSS.
这篇关于你如何样式在谷歌商家信息自动填充API下拉?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!