标题的样式
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);把这几句注销掉就可以设置样式了。