How to float a div over Google Maps?

前端 未结 4 940
迷失自我
迷失自我 2020-12-02 06:08

I have a div that displays a Google map.

How do I make another div float over the map div?

4条回答
  •  醉酒成梦
    2020-12-02 06:30

    #floating-panel {
      position: absolute;
      top: 10px;
      left: 25%;
      z-index: 5;
      background-color: #fff;
      padding: 5px;
      border: 1px solid #999;
      text-align: center;
      font-family: 'Roboto','sans-serif';
      line-height: 30px;
      padding-left: 10px;
    }
    

    Just need to move the map below this box. Work to me.

    From Google

提交回复
热议问题