效果图
我觉得不用废话那么多,直接上代码吧!
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
<link rel="stylesheet" href="https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css" />
<link rel="stylesheet" type="text/css" href="https://a.amap.com/jsapi_demos/static/demo-center/css/prety-json.css">
<style>
html,
body{
width: 100%;
height: 100%;
}
.mapOut{
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
-webkit-box-sizing: border-box;
padding-bottom: 230px;
}
#container {
width: 100%;
height: 100%;
}
.info{
min-width: 26rem;
}
#search {
position: absolute;
left: 0;
top: 0;
z-index: 1000;
}
#infoBottom{
position: fixed;
left: 0;
width: 100%;
bottom: 0;
background-color: white;
z-index: 1000000;
border-radius: 10px 10px 0 0;
padding:10px;
box-shadow: 0 0px 2px rgba(0,0,0,0.2);
-webkit-box-shadow: 0 0px 2px rgba(0,0,0,0.2);
h