infowindow 是 google maps apiv3。任何帮助,将不胜感激。我只想要一个演示代码。 我正在尝试以下代码,但它不起作用。不知道哪里出了问题
var contentstring = '<div id="box" style="background-color:red; height:100px; width:100px;">' + '</div>' + '<input type="button" id="but">'
var infowindow = new google.maps.InfoWindow({
content: contentstring
});
这里是jquery动画的代码
<script>
$(document).ready(function()
{
$("#but").hover(function()
{
$("#box").fadeOut();
},function()
{
$("#box").fadeIn();
});
});
最佳答案
你的 div 属性是错误的。
div id=
到
div 类=
关于javascript - 谁能给我一个信息窗口内 div 元素的 jquery 动画示例代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21052332/