[ default: '#fff' ]
提示框组件指示器文本标签中文字的颜色设置。
[ default: 'normal' ]
提示框组件指示器文本标签中文字字体的风格
可选:
[ default: normal ]
设置文字字体的粗细
可选:
[ default: 'sans-serif' ]
设置文字的字体系列
还可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...
[ default: 12 ]
设置文字的字体大小
设置文字的行高。
rich 中如果没有设置 lineHeight,则会取父层级的 lineHeight。例如:
{
lineHeight: 56,
rich: {
a: {
// 没有设置 `lineHeight`,则 `lineHeight` 为 56
}
}
}
设置文字块的宽度。一般不用指定,不指定则自动是文字的宽度。在想做表格项或者使用图片(参见 backgroundColor)时,可能会使用它。
注意,文字块的 width 和 height 指定的是内容高宽,不包含 padding。
width 也可以是百分比字符串,如 '100%'。表示的是所在文本块的 contentWidth(即不包含文本块的 padding)的百分之多少。之所以以 contentWidth 做基数,因为每个文本片段只能基于 content box 布局。如果以 outerWidth 做基数,则百分比的计算在实用中不具有意义,可能会超出。
注意,如果不定义 rich 属性,则不能指定 width 和 height。
设置文字块的高度。一般不用指定,不指定则自动是文字的高度。在使用图片(参见 backgroundColor)时,可能会使用它。
注意,文字块的 width 和 height 指定的是内容高宽,不包含 padding;如果不定义 rich 属性,则不能指定 width 和 height。
[ default: 'transparent' ]
设置文字本身的描边颜色。
[ default: 0 ]
设置文字本身的描边宽度。
[ default: 'transparent' ]
设置文字本身的阴影颜色。
[ default: 0 ]
设置文字本身的阴影长度。
[ default: 0 ]
设置文字本身的阴影 X 偏移。
[ default: 0 ]
设置文字本身的阴影 Y 偏移。
toolbox.feature.dataView.iconStyle.normal |Object通过normal设置 ECharts 数据视图的 icon 样式。toolbox.feature.dataView.i...
JavaScript getSeconds() 方法 JavaScript Date 对象实例依据当地时间返回时间秒数:var d = new Date();var n = d.getSeconds()...
JavaScript UTC() 方法 JavaScript Date 对象实例返回 1970 年 1 月 1 日 到指定日期的毫秒数:var d=Date.UTC(2012,02,30);d 输...
JavaScript toLocaleString() 方法 JavaScript Date 对象实例根据本地时间把 Date 对象转换为字符串:var d=new Date();var n=d....
JavaScript link() 方法 JavaScript String 对象定义和用法link() 方法用于把字符串显示为超链接。该方法返回加了 a 标签的字符...
HTML canvas fillText() 方法 Canvas 对象实例使用 fillText(),在画布上写文本 Hello world! 和 Big smile!:Yourbrowserdoesno...
HTML canvas globalAlpha 属性 Canvas 对象实例首先,绘制一个红色的矩形,然后将透明度 (globalAlpha) 设置为 0.5,然后再绘制...
Password maxLength 属性 Password 对象定义和用法maxLength 属性可设置或返回密码域中所允许的最大字符数。语法设置 maxLength ...
HTML事件属性onkeyup触发 onkeyup 属性事件当用户按下一个键。与onkeydown事件相关的事件顺序:onkeydownonkeypressonkeyupHTML5...
HTML事件属性onafterprint触发 onafterprint 属性事件当页面开始打印时,或者打印对话框已关闭时。HTML5中的新功能 onafterprint...