js 百度地图自定义弹出信息窗口

圆形头像,下方图文效果
       var sContent =
                            {#                    '<a style="color:black; width:80%;display:block;" href="/mobile/resource/case/' + broker_case.id + '">' + broker_case.title + 'br>' +#}
                            {#                    '地址:' + broker_case.community_info.area_info.full_name +#}
                            {#                    'a>';#}

                            '<a href="/mobile/resource/case/' + broker_case.id + '">' + "<h4 style='margin:0 0 0 0;padding:0.2em 0;text-align:center;position:relative;'>" + broker_case.title + "h4>"
                            + "<img style='width:40px;height:40px;position:absolute;top:4px;left:20px;border-radius:20px;' " +
                            "id='imgDemo' src='http://app.baidu.com/map/images/tiananmen.jpg' width='139' height='104' title='小庄'/>"
                            + "<p style='margin:0;text-align:center;text-indent:70px;line-height:1.5;font-size:13px;margin-bottom:5px;'>地址:" + broker_case.community_info.area_info.full_name + "p>" +
                            "<img style='margin:0 auto;width:100%;' id='imgDemo' src='http://app.baidu.com/map/images/tiananmen.jpg' width='139' height='104' title='小庄'/>a>"
                    ;

js 百度地图自定义弹出信息窗口_第1张图片

你可能感兴趣的:(js 百度地图自定义弹出信息窗口)