从谷歌地图中删除信息框

时间:2016-07-30 18:56:56

标签: html css

我有谷歌地图,我想删除白色信息框(下图中的1和2)。我尝试过以下css:

.place-card {
    display:none
}

但它似乎无法发挥作用。

1 个答案:

答案 0 :(得分:1)

参考How to remove place- cards

    <div style="width: 100%; overflow: hidden; height: 300px;">
  <iframe 
     src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d39797.07748547086!2d5.46683904751879!3d51.433965676849986!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x47c6d90575ca5e3d%3A0x55989f5f344b006!2sPrins+Hendrikstraat+5!5e0!3m2!1snl!2snl!4v1392716144537"
     width="100%"
     height="600"
     frameborder="0"
     style="border:0; margin-top: -150px;">
  </iframe>
</div>