新聞中心
title.subtext | string

獨(dú)山網(wǎng)站制作公司哪家好,找成都創(chuàng)新互聯(lián)!從網(wǎng)頁設(shè)計(jì)、網(wǎng)站建設(shè)、微信開發(fā)、APP開發(fā)、響應(yīng)式網(wǎng)站建設(shè)等網(wǎng)站項(xiàng)目制作,到程序開發(fā),運(yùn)營維護(hù)。成都創(chuàng)新互聯(lián)公司2013年成立到現(xiàn)在10年的時(shí)間,我們擁有了豐富的建站經(jīng)驗(yàn)和運(yùn)維經(jīng)驗(yàn),來保證我們的工作的順利進(jìn)行。專注于網(wǎng)站建設(shè)就選成都創(chuàng)新互聯(lián)。
[ default: '' ]
副標(biāo)題文本,支持使用 \n 換行。
title.sublink | string
[ default: '' ]
副標(biāo)題文本超鏈接。
title.subtarget | string
[ default: 'blank' ]
指定窗口打開副標(biāo)題超鏈接,可選:
- 'self' 當(dāng)前窗口打開
- 'blank' 新窗口打開
title.subtextStyle | *
title.subtextStyle.color | Color
[ default: '#aaa' ]
副標(biāo)題文字的顏色。
title.subtextStyle.fontStyle | string
[ default: 'normal' ]
副標(biāo)題文字字體的風(fēng)格
可選:
- 'normal'
- 'italic'
- 'oblique'
title.subtextStyle.fontWeight | string
[ default: normal ]
副標(biāo)題文字字體的粗細(xì)
可選:
- 'normal'
- 'bold'
- 'bolder'
- 'lighter'
- 100 | 200 | 300 | 400...
title.subtextStyle.fontFamily | string
[ default: 'sans-serif' ]
副標(biāo)題文字的字體系列
還可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...
title.subtextStyle.fontSize | number
[ default: 12 ]
副標(biāo)題文字的字體大小
title.subtextStyle.align | string
文字水平對(duì)齊方式,默認(rèn)自動(dòng)。
可選:
- 'left'
- 'center'
- 'right'
rich 中如果沒有設(shè)置 align,則會(huì)取父層級(jí)的 align。例如:
{
align: right,
rich: {
a: {
// 沒有設(shè)置 `align`,則 `align` 為 right
}
}
}title.subtextStyle.verticalAlign | string
文字垂直對(duì)齊方式,默認(rèn)自動(dòng)。
可選:
- 'top'
- 'middle'
- 'bottom'
rich 中如果沒有設(shè)置 verticalAlign,則會(huì)取父層級(jí)的 verticalAlign。例如:
{
verticalAlign: bottom,
rich: {
a: {
// 沒有設(shè)置 `verticalAlign`,則 `verticalAlign` 為 bottom
}
}
}title.subtextStyle.lineHeight | number
行高。
rich 中如果沒有設(shè)置 lineHeight,則會(huì)取父層級(jí)的 lineHeight。例如:
{
lineHeight: 56,
rich: {
a: {
// 沒有設(shè)置 `lineHeight`,則 `lineHeight` 為 56
}
}
}title.subtextStyle.width | number, string
文字塊的寬度。一般不用指定,不指定則自動(dòng)是文字的寬度。在想做表格項(xiàng)或者使用圖片(參見 backgroundColor)時(shí),可能會(huì)使用它。
注意,文字塊的 width 和 height 指定的是內(nèi)容高寬,不包含 padding。
width 也可以是百分比字符串,如 '100%'。表示的是所在文本塊的 contentWidth(即不包含文本塊的 padding)的百分之多少。之所以以 contentWidth 做基數(shù),因?yàn)槊總€(gè)文本片段只能基于 content box 布局。如果以 outerWidth 做基數(shù),則百分比的計(jì)算在實(shí)用中不具有意義,可能會(huì)超出。
注意,如果不定義 rich 屬性,則不能指定 width 和 height。
title.subtextStyle.height | number, string
文字塊的高度。一般不用指定,不指定則自動(dòng)是文字的高度。在使用圖片(參見 backgroundColor)時(shí),可能會(huì)使用它。
注意,文字塊的 width 和 height 指定的是內(nèi)容高寬,不包含 padding。
注意,如果不定義 rich 屬性,則不能指定 width 和 height。
title.subtextStyle.textBorderColor | string
[ default: 'transparent' ]
文字本身的描邊顏色。
title.subtextStyle.textBorderWidth | number
[ default: 0 ]
文字本身的描邊寬度。
title.subtextStyle.textShadowColor | string
[ default: 'transparent' ]
文字本身的陰影顏色。
title.subtextStyle.textShadowBlur | number
[ default: 0 ]
文字本身的陰影長度。
title.subtextStyle.textShadowOffsetX | number
[ default: 0 ]
文字本身的陰影 X 偏移。
title.subtextStyle.textShadowOffsetY | number
[ default: 0 ]
文字本身的陰影 Y 偏移。
文章名稱:創(chuàng)新互聯(lián)ECharts教程:ECharts副標(biāo)題文本的設(shè)置
本文鏈接:http://fisionsoft.com.cn/article/dpjdhge.html


咨詢
建站咨詢
