地图上光标样式问题 我把google地图放进div,然后给div自定义光标样式。可是,只能表现出小手那个样式。哪位高手说一下能解决吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 那个是google自己控制的吧,以便用户操作具体没细看 地图上所有的操作Google都封在js里了 不知道怎么搞... 代码很简单:<!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&v=2&ie=gb2312&oe=gb2312&hl=zh-CN&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);} 试试@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);} 好的,谢谢!原来是我css水平不行 <!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&v=2&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>接分 恩,对#9说的,怎么引用我自己的了,CSDN bug? 请问主页如何通过JS调用B页面的内容? 如何控制textarea的长度,比如限制为0~100,非中文字符 Table动态添加<tr>标签 ie经常出现这样的错误:syntax error, object expected,unterminated string constant. 如 何 改 这 个 函数 ie window.open 问题!!谢谢!!! 图片显示特效 高分求一列表框脚本,快快快!!!! js 改td背景色,ie中如果不用兼容性视图或firefox中无效 Jquery如何简单有效的实现自定义扩展 如何实现点击表格行显示提示? 问一个正则表达式的问题
具体没细看
<!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&v=2&ie=gb2312&oe=gb2312&hl=zh-CN&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);
}
@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);
}
<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&v=2&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>接分