Internet Explorer9でのGoogleマップv3の読み込みに問題があります。ChromeとFirefoxは完全に読み込みますが、IE9ではまったく表示されません。私はこの機能を持っています:
function load() {
var map = new google.maps.Map(document.getElementById("mapa"), {
center: new google.maps.LatLng(44.109742, 20.462222),
zoom: 7,
mapTypeId: 'roadmap'
});
私がここで呼んでいるもの:
<body onload="load()">
私のページの冒頭に、ブラウザを認識する「if」句があります。
<?php if ( preg_match( '/MSIE/i', $_SERVER['HTTP_USER_AGENT'] ) ) { ?>
<link href="CSS/stylemapaIE.css" rel="stylesheet" type="text/css" />
<?php } elseif ( preg_match( '/Firefox/i', $_SERVER['HTTP_USER_AGENT'] ) ) { ?>
<link href="CSS/stylemapaMF.css" rel="stylesheet" type="text/css" />
<?php } else { ?>
<link href="CSS/stylemapa.css" rel="stylesheet" type="text/css" />
<?php } ?>
3つの異なるcssスタイルシートを使用します。あなたはhttp://jedanzasve.rs/Test/mapaponuda.phpでページを見ることができます何か考えはありますか?