如何在Google地图上创建div区域

时间:2013-11-22 00:06:18

标签: javascript html css

如何在Google地图iframe上创建div区域。我的部分代码已准备就绪(http://thewebcookies.home.pl/test.html)。该图像(http://i.stack.imgur.com/92gkt.png)就是我想要的例子。

1 个答案:

答案 0 :(得分:0)

在地图iframe

下添加此div
<div class="modal">
    <!-- text and input box go here -->
</div>

并添加以下CSS

.modal {
    width: 500px;
    height: 160px;
    background: #FFF;
    position: absolute;
    top: 100px;
    left: 250px;
}