搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

z-index doesn't work with google map API

  • 1 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 serejajar

more options

in this example map element stretched in full screen, we have 2 translucent blocks 'citylist' and 'menu' which overlap each other. Each unit has a hover, which changes background color to red when 'clicked'. The example shows that if the "click" on the intersection of two blocks change the background does not happen, although is crossing works.

If you remove the library from Google Maps, it all works.

Tested on several desktop browsers, and several phones. This problem is present only in the mobile browser version.

in this example map element stretched in full screen, we have 2 translucent blocks 'citylist' and 'menu' which overlap each other. Each unit has a hover, which changes background color to red when 'clicked'. The example shows that if the "click" on the intersection of two blocks change the background does not happen, although is crossing works. If you remove the library from Google Maps, it all works. Tested on several desktop browsers, and several phones. This problem is present only in the mobile browser version.

由 serejajar 於 修改

所有回覆 (1)

more options

由 serejajar 於 修改