您的位置:首页 > Web前端 > CSS

arcgis for flex infowindow样式自定义

2014-08-26 11:45 447 查看
标题的样式

esri|InfoWindowLabel 



 color: white; 

 font-size: 20;

 fontFamily:微软雅黑;

paddingTop:5;

 paddingLeft:5;



主窗体样式

esri|InfoWindow 



  background-color: green;

 border-thickness: 0; 

 upper-left-radius: 10;  左上角圆角大小

 upper-right-radius: 10;  右上角圆角大小

 info-placement: right;     信息显示位置(箭头的方向,分别可以用left ,right,top,bottom)          

}

 如果用的是flex view的框架,可能有些样式定义无效,比如InfoWindowLabel 的字体大小和字体样式, border-thickness。这是因为view框架已经为我们定义好了,具体代码在UIManager.as类里面的

cssStyleDeclarationInfoWindowLabel.setStyle("fontSize", fontSize);cssStyleDeclarationInfoWindowLabel.setStyle("fontFamily", fontName);cssStyleDeclarationInfoContainer.setStyle("borderThickness", 1);把这几句注销掉就可以设置样式了。




内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: