【发布时间】:2015-12-17 22:39:15
【问题描述】:
我有这个简单的代码:
<HTML>
<head>
<title>Vector Icon Example</title>
<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
<link rel="stylesheet" href="../apidoc/styles/bootstrap.min.css">
<script src="../apidoc/scripts/bootstrap.min.js"></script>
<link rel="stylesheet" href="../css/ol.css" type="text/css">
<script src="../build/ol.js"></script>
</head>
<BODY>
<div id="map" style="width: 100%, height: 400px">ggg</div>
<script>
new ol.Map({
layers: [
new ol.layer.Tile({source: new ol.source.OSM()})
],
view: new ol.View({
center: [0, 0],
zoom: 2
}),
target: 'map'
});
</script>
</BODY>
</HTML>
它在 chrome 中正常工作,但在 IE 11 中没有任何显示。问题出在哪里?
【问题讨论】:
-
看看这是否有帮助 - stackoverflow.com/questions/29954301/…
-
这个元标记帮助了我! 谢谢!
-
也许您可以发布自己的答案并接受它。
标签: internet-explorer-11 openlayers openstreetmap x-ua-compatible