问题:百度地图中的LABEL显示文字不在框里。
原因:bootstrap中为label加了样式:max-width:100%;
解决办法:设置maxWidth:"none"
label.setStyle({borderRadius:"8px",padding:'2px',maxWidth:"none" });
问题:百度地图中的LABEL显示文字不在框里。
原因:bootstrap中为label加了样式:max-width:100%;
解决办法:设置maxWidth:"none"
label.setStyle({borderRadius:"8px",padding:'2px',maxWidth:"none" });