我把google地图放进div,然后给div自定义光标样式。
可是,只能表现出小手那个样式。哪位高手说一下能解决吗?

解决方案 »

  1.   

    那个是google自己控制的吧,以便用户操作
    具体没细看
      

  2.   

    地图上所有的操作Google都封在js里了  不知道怎么搞...
      

  3.   

    代码很简单:
    <!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN"   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=gb2312"/>
    <title>Google Maps JavaScript API Example</title> 
    <script src="http://ditu.google.cn/maps?file=api&amp;v=2&amp;ie=gb2312&amp;oe=gb2312&amp;hl=zh-CN&amp;key=abcdefg&sensor=true_or_false" type="text/javascript"></script>
    <script type="text/javascript"> 
    function initialize() 
    {      
    if (GBrowserIsCompatible()) 
    {  
    var map = new GMap2(document.getElementById("map_canvas"));
    map.setCenter(new GLatLng(39.9493, 116.3975), 13);
    }
    }    
    </script>
    <link href="../images/css/map.css" rel="stylesheet" type="text/css" />
    </head>
    <body onload="initialize()" onunload="GUnload()">
    <div id="map_canvas" class="map"></div>
    </body>
    </html>
    以下为css
    @charset "gb2312";
    body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    }
    .map {
    height: 500px;
    width: 800px;
    CURSOR: url(../images/pencil.cur);
    }
      

  4.   

    试试
    @charset "gb2312";
    body {
        margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
    }
    .map {
        height: 500px;
        width: 800px;
    }
    .map img{
        CURSOR: url(../images/pencil.cur);
    }
      

  5.   

    好的,谢谢!原来是我css水平不行
      

  6.   

    <!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN"   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
      <html xmlns="http://www.w3.org/1999/xhtml"> 
      <head> 
      <meta http-equiv="content-type" content="text/html; charset=gb2312"/> 
      <title>Google Maps JavaScript API Example </title>  
    <script src="http://ditu.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAPr2lg_u1GjwBae5jGI7LVRR7ZeNdEDFZ60daBOzX0qLOwUWzGRTzdd3JdKOyd6mvqWKZ-w6MO2yBUw" type="text/javascript"></script>
    <script type="text/javascript">  
    function initialize()  
    {       
      if (GBrowserIsCompatible()) 
      {   
      map = new GMap2(document.getElementById("map_canvas"));
      map.setCenter(new GLatLng(39.9493, 116.3975), 13); 
      } 
    }
    </script> 
    <style>
    body {
        margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
    }
    .map {
        height: 500px;
        width: 800px;
    }
    .map div div div div img{
        cursor:url(http://www.javatimes.cn/images/3dgmove.cur), default;;
    }</style>
      </head> 
      <body onload="initialize()" onunload="GUnload()"> 
      <div id="map_canvas" class="map"></div> 
      </body> 
      </html>接分
      

  7.   

    恩,对#9说的,怎么引用我自己的了,CSDN bug?