2025年02月02日 建站教程
因为项目需要,利用百度echarts需要设置主标题和副标题,下面web建站小编给大家详细介绍一下具体实现方法!
具体实现代码如下:
title: [
{
text: "主标题",
left: '20%', //主标题位置
top: '40%',
textStyle: {
color: "#f00",
fontSize: 32,
fontWeight: 'bold'
}
},
{
subtext: "副标题",
itemGap: 12, //主副标题间距
left: '20%', //副标题位置
top: '50%',
subtextStyle: {
color: "#000",
fontSize: 18,
fontWeight: '500'
}
}
],
本文链接:http://so.lmcjl.com/news/22530/