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)。当没有给出其他外形时,这是垂直誊写形式中的默许外形。
<string>:将给定字符串显现为标记。
<color>:定义标记的色彩。假如没有色彩,则默许为currentColor。
以上就是text-emphasis属性有什么用的细致内容,更多请关注ki4网别的相干文章!