Oll*_*e F 4 html javascript google-maps
这是影响它的代码:
<script type="text/javascript">
function initialize() {
var latLng = new google.maps.LatLng(51.4893169, -2.1182648);
var mapOptions = {
center: latLng,
zoom: 15,
scrollwheel: false,
};
var map = new google.maps.Map(document.getElementById('map-canvas'),
mapOptions);
var image = 'images/map_blue.png';
var marker = new google.maps.Marker({
position: latLng,
map: map,
icon: image
});
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
Run Code Online (Sandbox Code Playgroud)
它使我的一些文本变为粗体,在 Google 检查元素中没有显示粗体或字体粗细。
这让我很困惑,因为我看不出这两者是如何相关的。
干杯伙计们
有同样的问题,原因是页面使用字体“Roboto”和 font-weight: 300,但谷歌地图加载这个字体的重量为 300,400,500,700 所以“正常”eq 400,而不是 300,文本变得更粗