muban大师 发表于 2023-5-27 01:29:25

pbootcms模板如何增加百度地图

pbootcms模板如何增加百度地图

首先找到你要增加的模板,模板路径:template文件夹,比如要加到联系contact.html上,找打合适的位置,加上如下代码:



       
               
                       
                               

#allmap {width: 100%;height: 400px;margin-top:20px;overflow: hidden;font-family:"微软雅黑";}
#allmap b{color: #CC5522;font-size: 14px; }
#allmap img{max-width: none;}
      
      
                       
               
       


然后到后台 按下图设置:


https://www.adminbuy.cn/uploads/allimg/230526/1-2305260S910300.png


设置后填写坐标:


https://www.adminbuy.cn/uploads/allimg/230526/1-2305260T012162.jpg


坐标获取地址:http://api.map.baidu.com/lbsapi/getpoint/
页: [1]
查看完整版本: pbootcms模板如何增加百度地图