我的头脑:
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Open House Full Width Map</title>
<meta name="description" content="A full width map for Openhouse.ca">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/newMap.css">
<link href="//netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
<script type="text/javascript" src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyB5pF1SXoI6fZ2fVvkfweFMM7B84Syt1RM&sensor=false"></script>
<script type="text/javascript">
function initialize() {
var mapOptions = {
center: new google.maps.LatLng(55.962422417922454, -96.79128437499999),
zoom: 5,
mapTypeId: google.maps.MapTypeId.ROADMAP,
panControl: false,
scaleControl: false,
mapTypeControl: true,
zoomControl: true,
streetViewControl: true,
mapTypeControlOptions: {
style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
position: google.maps.ControlPosition.TOP_RIGHT
},
zoomControlOptions: {
style: google.maps.ZoomControlStyle.SMALL,
position: google.maps.ControlPosition.RIGHT_TOP
},
streetViewControlOptions: {
position: google.maps.ControlPosition.BOTTOM_CENTER
}
}
var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
google.maps.event.addListener(map, 'zoom_changed', function() {
var zoomLevel = map.getZoom();
if(zoomLevel < 4){
map.setZoom(4);
}
});
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
我正在使用图标的HTML:
<div class="btn-group" style="pointer-events: all;">
<button class="btn btn-large" id="showSearch"><i class="icon-search"></i></button>
<button class="btn btn-large" id="showPOI"><i class="icon-home"></i></button>
</div>
结果: (字体真棒图标和引导图标,彼此重叠,当我只想要字体真棒图标时)
我做了一些谷歌搜索,我的问题的所有其他实例都已经超过5个月了,并且已经在字体很棒的代码中进行了修正,但我仍然遇到了最新的cdn
版本。有什么想法吗?
答案 0 :(得分:9)
确保在font-awesome.css
..
bootstrap-combined.min.css
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.css" rel="stylesheet">