forked from iyuxy/staticWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap.html
executable file
·49 lines (48 loc) · 1.28 KB
/
map.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<title></title>
<style type="text/css">
html,body{
width:100%;
height:100%;
}
*{
margin:0px;
padding:0px;
}
body, button, input, select, textarea {
}
a{
text-decoration:none;
color:#003366;
font-size:15px;
font-family:Microsoft YaHei,"微软雅黑", Arial, Helvetica, sans-serif;
}
a:hover{
color:#F00;}
</style>
<script charset="utf-8" src="http://map.qq.com/api/js?v=2.exp"></script>
<script>
var init = function() {
var center = new qq.maps.LatLng(19.623482,110.215622);
var map = new qq.maps.Map(document.getElementById('container'),{
center: center,
zoom: 13
});
var infoWin = new qq.maps.InfoWindow({
map: map
});
infoWin.open();
infoWin.setContent('<div style="width:160px;padding-top:0px;font-size:12px;">'+'<a href=\"http://wurongbo.com//\">'+
'新竹荣波矿粉加工厂</a></div>');
infoWin.setPosition(center);
}
</script>
</head>
<body onload="init()">
<div style="width:100%;height:100%" id="container"></div>
</body>
</html>