2

我的整个脑袋:

<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每个最新版本的问题。有任何想法吗?

4

1 回答 1

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">

Demo

于 2013-05-29T18:25:20.993 回答