In webkit browsers, v3 google maps do not respect container's border-radius. Anyone have a workaround?

前端 未结 3 1742
小蘑菇
小蘑菇 2020-12-17 04:40

I have two google maps. The first is created using the Google Maps API (v3) and contained in #map1. The second is displayed in an iframe using the suggested embed syntax fro

3条回答
  •  春和景丽
    2020-12-17 04:55

    This worked for me:

    -webkit-transform: translate3d(0px, 0px, 0px);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    

提交回复
热议问题