有人可以帮我弄清楚为什么 IE9 不会加载我的谷歌地图,但其他主要浏览器会。我认为它与实际设置或标题而不是javascript有关,但如果您也想要,请告诉我。这是代码:
<?php
include('session.php');
?>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Google Maps API Project</title>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api /js?sensor=false"></script>
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<h1>Title</h1>
<div id="map" style="width: 1000px; height: 500px"></div>
<div id="message"></div>
<input type="text" id="search" >
<input type="button" onclick="search();" value="Search">
<input type="button" onclick="addlaunchMark();" value="Add Launch">
<input type="checkbox" id="launches" checked="checked" onchange="addRemovelaunch()">
</br>
<input type="textbox" id="box1" style="display: none">
<input type="textbox" id="box2" style="display: none">
<script type="text/javascript">
</script>
</body>