联系官方销售客服
QQ1835022299
028-61286886
分享一个这种造型的地图代码
以下是HTML放到你想显示地图信息的SHOW页面
{$title}
地址:{$dizhi}
到这里 从这里出发起点公交驾车
以下是JS代码
以下是css样式文件代码
.mapmodelbody .baidumapout { float: left; width: 65%; height: 100%; box-sizing: border-box; border: 1px solid #00c8aa; position: relative; border-right-color:#b3d7d2; } .mapmodelbody .baidumapout .baidumap { width: 100%; height: 100%; } .lookroad .mapmodelbody .searchresult { width: 35%; overflow-y: auto; overflow-x: hidden; } .lookroad .mapmodelbody .searchresult::-webkit-scrollbar { width:1px; } /* 婊氬姩妲� */ .lookroad .mapmodelbody .searchresult::-webkit-scrollbar-track { -webkit-box-shadow:inset006pxrgba(77,250,200,0.3); border-radius:10px; } /* 婊氬姩鏉℃粦鍧� */ .lookroad .mapmodelbody .searchresult::-webkit-scrollbar-thumb { border-radius:10px; background:rgba(0,0,0,0.1); -webkit-box-shadow:inset006pxrgba(77,250,200,0.5); } .lookroad .mapmodelbody .searchresult::-webkit-scrollbar-thumb:window-inactive { background:rgba(255,0,0,0.4); } .mapmodelbody .searchresult { float: left; height: 100%; box-sizing: border-box; border: 1px solid #00c8aa; border-left: none; } .lookroad .layoutborder { min-height: 100%; } .lookroad .mapyyinfo { padding-bottom: 3px; } .lookroad .mapyyinfo p.mapyyname { font-size: 16px; color: #1eb388; font-weight: bold; padding: 4px 10px 0; line-height: 30px; } .lookroad .mapyyinfo p { font-size: 13px; color: #666; padding: 4px 10px 0; line-height: 30px; margin: 0!important; } .lookroad .roadtype { overflow: hidden; border-top: 1px solid #00c8aa; } .lookroad .roadtype span.active, .lookroad .roadtype span:hover { background:#00c8aa url(../img/icon_gps1.png) no-repeat 10px center; color: #fff; } .lookroad .roadtype span:first-child { width: 50%; } .lookroad .roadtype span { float: left; width: 50%; background: url(../img/icon_gps2.png) no-repeat 10px center; box-sizing: border-box; padding: 10px 0 10px 30px; cursor: pointer; } .lookroad .roadtype span.active{ background:#00c8aa url(../img/icon_gps1.png) no-repeat 10px center; } .lookroad .roadinput { border-top: 1px solid #00c8aa; padding: 10px 10px; overflow: hidden; } .lookroad .roadinput span { display: block; float: left; line-height: 25px; margin-right: 5px; } .lookroad .roadinput input { width: 110px; border: 1px solid #00c8aa; outline: 0; height: 29px; padding: 0 5px!important; margin-left: 5px; float: left; } .lookroad .roadinput p { text-align: center; width: 125px; float: left; position: relative; top: -1px; padding: 0; margin: 0!important; } .lookroad .roadinput b { margin-left: 10px; width: 50px; text-align: left; display: inline-block; line-height: 25px; font-weight: normal; border: 1px solid #00c8aa; position: relative; top: 1px; cursor: pointer; text-align: center; background-color: #00c8aa; color: #fff; border-radius: 3px!important; } .lookroad .maproadresult { border-top: 1px solid #00c8aa; } .lookroad input{ margin: 0!important; padding: 0!important; } .BMapLib_SearchInfoWindow .BMapLib_bubble_top{ font-weight: bold; color: #00c8aa; } .BMapLib_SearchInfoWindow .BMapLib_bubble_content{ color: #999; } .BMapLib_nav_tab li{ height: 30px!important; line-height: 30px; text-indent: 10px; padding: 0!important; } .BMapLib_trans_text,.BMapLib_search_text{ height: 26px!important; line-height: 26px!important; } .BMapLib_SearchInfoWindow .BMapLib_bubble_content img{ width: 110px!important; height: 95px!important; padding: 2px; border:1px solid #eee; } .BMapLib_SearchInfoWindow .iw_bt, .BMapLib_SearchInfoWindow .iw_bt_down, .BMapLib_SearchInfoWindow .iw_bt_over{ margin-right: 0!important; background: #00c8aa!important; color: #fff!important; } .BMapLib_SearchInfoWindow .iw_bt:nth-child(2){ margin-left: 5px!important; } .BMapLib_SearchInfoWindow .BMapLib_trans{ left: 125px!important; top: 211px!important; } #BMapLib_stationText0{ width:30px!important; } .BMapLib_nav_tab_content li{ padding: 10px 5px 0 5px!important; height: 45px!important; } .BMapLib_nav_tab_content li td{ padding: 0!important; } .sel_n .sel_body_title{ border-right: 1px solid #e6c3a1!important; border-radius: 0 2px 2px 0!important; } .sel_y .sel_body_top{ border-right: 1px solid #b8c7e6!important; border-radius: 0 2px 2px 0!important; } .sel_n .sel_body_name{ height: 31px!important; padding: 0 7px!important; line-height: 31px; }
将就用吧,第一次分享,感谢好心人给我的分享,尽点绵薄之力!