text-emphasis-color¶
Свойство text-emphasis-color
устанавливает цвет меток выделения. Это значение также можно установить с помощью свойства text-emphasis
.
Текст
- letter-spacing
- text-decoration
- text-decoration-color
- text-decoration-line
- text-decoration-style
- text-decoration-thickness
- text-decoration-skip
- text-decoration-skip-ink
- text-emphasis
- text-emphasis-color
- text-emphasis-position
- text-emphasis-style
- text-indent
- text-rendering
- text-shadow
- text-underline-position
- text-transform
- white-space
- word-spacing
Синтаксис¶
/* Initial value */
text-emphasis-color: currentColor;
/* <color> */
text-emphasis-color: #555;
text-emphasis-color: blue;
text-emphasis-color: rgba(90, 200, 160, 0.8);
text-emphasis-color: transparent;
/* Global values */
text-emphasis-color: inherit;
text-emphasis-color: initial;
text-emphasis-color: unset;
Значения¶
<цвет>
- Определяет цвет меток выделения. Если цвет отсутствует, по умолчанию
currentColor
.
Спецификация¶
Пример¶
<p>Here's an example:</p>
<em>This has emphasis marks!</em>
em {
-webkit-text-emphasis-color: green;
-webkit-text-emphasis-style: '*';
text-emphasis-color: green;
text-emphasis-style: '*';
}
См. также¶
Ссылки¶
text-emphasis-color
MDN (рус.)