欢迎访问2017年洛阳SEO牛广的官方博客,只要标题有亲测有效的都是原创文章。为大家提供最新真实有效的案例,承接网站SEO百度优化业务QQ:939380096

百度地图生成器使用显示方法–亲测有效

PHP niuguang 1049次浏览 9个评论

百度地图生成器使用显示方法

洛阳SEO牛广这次在学习dede仿站的时候用到了百度地址这个功能,非常简单,这个地图在很多网站上都能见到,可以说用的是非常的广泛。

下面洛阳SEO牛广就带大家一起做。

如图下,我们就把这个可以拖动大小显示的百度地图放在网站上去。

百度地图显示

第一步

去百度地图生成的网站 生成自己的地址

网站:http://api.map.baidu.com/lbsapi/creatmap/

百度地图生成器

第二步

根据地图上面的提示 写上自己要对应的地址

我们在这里 洛阳SEO牛广在这里 演示地址 :上海  新梅联合广场 

填写省份->填写对应地址->搜寻就可以了(有的时候地址可能不是非常准,要自己手动调一下)

地图定位

第三步

填写标记信息  如图下 2设置地图 在这里我们不要去动 默认就好了

洛阳SEO

 

第四步

获取代码

洛阳SEO博客

这个代码复制后要简单的修改下, 因为代码里面有html body等标签冲突,会和自己网页里面的标签造成冲突导致百度地图无法显示.

标签去重-洛阳SEO

在这里洛阳SEO牛广推荐大家修改代码的起止位置为下代码

开头截取<style type=”text/css”>包含<style type=”text/css”>

结束截取 </script> 包含</script>

如图下 中间的代码放在自己的网站中

百度地图

结束点

百度地图

这样就基本上结束了

代码中有一段话是调试地图大小的 width 是宽度 height是高度 根据自己网页大小调试

  <div style="width:697px;height:550px;border:#ccc solid 1px;" id="dituContent"></div>

好了今天的百度地图操作就这里了以上内容是由洛阳SEO牛广真情送上。


小广 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明百度地图生成器使用显示方法–亲测有效
喜欢 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到
(9)个小伙伴在吐槽
  1. Would you be concerned with exchanging links? adidas superstars [url=http://www.adidassuperstar.us.com]adidas superstars[/url]
    匿名2018-08-13 00:55 (5天前)
  2. I used to be very pleased to search out this internet-site.I needed to thanks for your time for this excellent read!! I definitely enjoying each little little bit of it and I have you bookmarked to take a look at new stuff you weblog post. fila
    匿名2018-08-13 14:03 (5天前)
  3. After research a number of of the weblog posts on your website now, and I really like your way of blogging. I bookmarked it to my bookmark web site listing and shall be checking back soon. Pls take a look at my website as well and let me know what you think. nike huarache
    匿名2018-08-14 06:12 (4天前)
  4. That is the correct weblog for anyone who desires to search out out about this topic. You realize a lot its almost onerous to argue with you (not that I truly would need匟aHa). You definitely put a brand new spin on a subject thats been written about for years. Nice stuff, simply great! adidas superstar
    匿名2018-08-14 21:08 (4天前)
  5. I as well as my pals ended up digesting the good secrets and techniques located on your web site then all of the sudden I had a horrible suspicion I never expressed respect to the website owner for them. All of the women became so excited to learn all of them and have now simply been tapping into them. Appreciate your getting very considerate and then for selecting certain exceptional guides millions of individuals are really eager to be informed on. My very own sincere regret for not saying thanks to earlier. Adidas NMD Women Cloth Surface Rainbow
    匿名2018-08-15 04:39 (3天前)
  6. Would you be occupied with exchanging links? yeezy
    匿名2018-08-15 13:02 (3天前)
  7. Spot on with this write-up, I actually assume this website needs far more consideration. I抣l most likely be again to learn far more, thanks for that info. longchamp handbags
    匿名2018-08-16 07:01 (2天前)
  8. I'm also writing to make you know of the fantastic discovery my child went through viewing your web site. She picked up some pieces, which include what it's like to have a wonderful teaching mood to have other folks without difficulty know precisely certain problematic issues. You truly did more than my expected results. Thank you for giving those warm and friendly, trusted, edifying and as well as easy tips on the topic to Emily. nmd
    匿名2018-08-16 22:25 (2天前)
  9. This really answered my problem, thank you! michael kors outlet
    匿名2018-08-17 17:42 (17小时前)