level 1
凌乱枫9
楼主
我想要用css定义一个icon样式,例如
但是并不能实现这样的样式,好像只能使用图表类型或者是图片作为参数
legend: {
orient : 'vertical',
x : 'left',
data:[
{name:'直接访问',textStyle:{color:'red'} ,icon :'bar'}
]
// data:['直接访问','邮件营销','联盟广告','视频广告','搜索引擎']
}
或者是icon: 'image://../asset/ico/favicon.png' 这两种可以
但是我想用icon:'《p style="background:red;width:2px;height:15px"》《/p》这个不行
' 好像不行,这个是不支持还是我写的有问题
2015年08月18日 02点08分
1
但是并不能实现这样的样式,好像只能使用图表类型或者是图片作为参数
legend: {
orient : 'vertical',
x : 'left',
data:[
{name:'直接访问',textStyle:{color:'red'} ,icon :'bar'}
]
// data:['直接访问','邮件营销','联盟广告','视频广告','搜索引擎']
}
或者是icon: 'image://../asset/ico/favicon.png' 这两种可以
但是我想用icon:'《p style="background:red;width:2px;height:15px"》《/p》这个不行
' 好像不行,这个是不支持还是我写的有问题