gpt4 book ai didi

twitter-bootstrap - Font Awesome 和 Bootstrap Icons 相互冲突并在彼此之上显示 2 个图标?

转载 作者:行者123 更新时间:2023-12-02 06:36:43 24 4
gpt4 key购买 nike

我的整个脑袋:

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

结果: Overlapping icons (当我只想要字体图标时,字体图标和 Bootstrap 图标相互重叠)

我做了一些谷歌搜索,我的问题的所有其他实例都是 5 个多月前的,并且已经在 Font Awesome 代码中得到更正,但我仍然遇到每个问题的最新 cdn 版本。有什么想法吗?

最佳答案

确保 font-awesome.cssbootstrap-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

关于twitter-bootstrap - Font Awesome 和 Bootstrap Icons 相互冲突并在彼此之上显示 2 个图标?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16820792/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com