html,css怎么做一个可以区域划分的地图?

html-css033

html,css怎么做一个可以区域划分的地图?,第1张

有做过这个功能,之前用的是百度地图提供的api,完全符合你的需求。当然,高德地图貌似也有,你可以去看看。

百度地图api:http://lbsyun.baidu.com/index.php?title=jspopular

补充:要做离线最好别用web端来做。后来发现,echarts来实现你的需求应该也是可以的(http://echarts.baidu.com/demo.html#map-world-dataRange)

气泡框。

http://www.ruanyifeng.com/blog/2010/04/css_speech_bubbles.html

ie8一下可能会有问题

<html>

    <head>

        <meta http-equiv="Content-Type" content="text/html charset=UTF-8">

        <title>无标题文档</title>

        <style type="text/css">

            body,html{

             margin:0px

             height:100%

            }

            .autoHeight{

             width:100px

             height:100%

             background:red

            }

</style>

<style type="text/css">

 div{ background: #FFF

font-family: "微软雅黑"

top: 10%

position: absolute

left: 50%

display: inline-block

padding: 10px

border-radius: 10px

box-shadow: 1px 1px 3px rgba(0,0,0,0.2)}

  div:before {

left: -10px

top: 50%

margin-top: -6px

position: absolute

z-index: -1

content: ""

width: 0

height: 0

border-top: 8px solid transparent

border-bottom: 8px solid transparent

border-right: 11px solid rgba(0, 0, 0, 0.1)

border-left: 0

}

div:after {

left: -11px

top: 50%

margin-top: -8px

position: absolute

content: ""

width: 0

height: 0

border-top: 8px solid transparent

border-bottom: 8px solid transparent

border-right: 11px solid #FFF

border-left: 0

}</style></head>

<body style="

    background: #369

">

  <div>你好</div>

</body>

</html>

根据你的图做的,应该合适了。