您好,欢迎访问一九零五行业门户网

text-emphasis属性有什么用

text-emphasis属性用于把指定的强调标记应用到元素文本中除去分隔符字符(如空格和控制字符)的每个字符。
css3  text-emphasis属性
text-emphasis 属性是简写属性,用于在一个声明中设置 text-emphasis-style 和 text-emphasis-color。
提示:adobe 的 kenten generic opentype font 是一个适合强调(重点)标记的字体,它专门为强调标记设计。
基本语法:
text-emphasis: text-emphasis-style text-emphasis-color;
text-emphasis-style:向元素的文本应用强调标记。
text-emphasis-color:定义强调标记的前景色。
注:目前主流浏览器都不支持 text-emphasis 属性。
css3 text-emphasis属性的使用示例
/* initial value */text-emphasis: none; /* no emphasis marks *//* <string> value */text-emphasis: 'x';text-emphasis: '点';text-emphasis: '\25b2';text-emphasis: '*' #555;text-emphasis: 'foo'; /* should not use. it may be computed to or rendered as 'f' only *//* keywords value */text-emphasis: filled;text-emphasis: open;text-emphasis: filled sesame;text-emphasis: open sesame;/* keywords value combined with a color */text-emphasis: filled sesame #555;/* global values */text-emphasis: inherit;text-emphasis: initial;text-emphasis: unset;
说明:
none:没有重点标记。
filled:形状充满纯色。如果既不存在filled也不open存在,这是默认值。
open:形状是空心的。
dot:将显示小圆圈的标记。填充点为'•'(u+2022),空心点为'◦'(u+25e6)。
circle:将显示大圆圈的标记。实心圆是'●'(u+25cf),空心圆是'○'(u+25cb)。当没有给出其他形状时,这是水平书写模式中的默认形状。
double-circle:将显示双圆圈的标记。填充的双圆是'◉'(u+25c9),开放的双圆是'◎'(u+25ce)。
triangle:将显示三角形的标记。实心三角形是'▲'(u+25b2),空心三角形是'△'(u+25b3)。
sesame:将显示芝麻形状的标记。填充的芝麻是'﹅'(u+fe45),开放的芝麻是'﹆'(u+fe46)。当没有给出其他形状时,这是垂直书写模式中的默认形状。
98c455a79ddfebb79781bff588e7b37e:将给定字符串显示为标记。
b10fb37415d019cfffa8c4d7366c607f:定义标记的颜色。如果没有颜色,则默认为currentcolor。
以上就是text-emphasis属性有什么用的详细内容。
其它类似信息

推荐信息