第一步:创建 map.html文件
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>百度地图</title>
<style type="text/css">
html {
height: 100%
}
body {
height: 100%;
margin: 0px;
padding: 0px
}
#mapPage {
height: 100%;
position: relative;
}
#container {
height: 100%
}
.conter {
width: 30%;
height: 60px;
line-height: 60px;
/* 毛玻璃效果 */
background: rgba(255, 255, 255, 0.20);
box-shadow: 0 8px 32px 0 rgba(31