Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在html中的嵌入式地图中使用鼠标滚动启用放大和缩小功能?_Html_Css - Fatal编程技术网

如何在html中的嵌入式地图中使用鼠标滚动启用放大和缩小功能?

如何在html中的嵌入式地图中使用鼠标滚动启用放大和缩小功能?,html,css,Html,Css,我在html页面中添加了一个嵌入式地图。代码如下 <iframe width="100%" height="300" frameborder="0" scrolling="yes" marginheight="0" marginwidth="0" src="https://maps.google.co.in/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=+&amp;q=anaveer+info+media&

我在html页面中添加了一个嵌入式地图。代码如下

<iframe width="100%" height="300" frameborder="0" scrolling="yes" marginheight="0" marginwidth="0" src="https://maps.google.co.in/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=+&amp;q=anaveer+info+media&amp;ie=UTF8&amp;hq=anaveer+info+media&amp;hnear=Ahmedabad,+Gujarat&amp;ll=23.036523,72.560641&amp;spn=0.011078,0.021136&amp;t=m&amp;z=19&amp;iwloc=A&amp;cid=8621019355742313992&amp;output=embed" align="middle"></iframe><br />


我有一个问题,这张地图没有得到放大和缩小鼠标滚动。如果我没有弄错的话,您正在使用的静态贴图API没有您所寻求的缩放功能,那么任何人都可以解决这个问题。如果要启用鼠标缩放,应使用

尝试用鼠标左键单击地图上的任何位置,然后使用鼠标滚动。