text-stroke-color

CSS text-stroke-color Property

The text-stroke-color property specifies the color of the character’s storke. The default value of the text-stroke-color is the default value of the color property.

You can choose colors from here HTML colors.

The text-stroke-color property is only used with a -webkit- vendor prefix.

类目类目
Initial ValuecurrentColor
Applies toAll elements.
InheritedYes.
AnimatableYes. The color is animatable.
VersionCompatibility Standard
DOM Syntaxobject.style.textStrokeColor = “#8ebf42”;

Syntax

Syntax

text-stroke-color: color | initial | inheirt;

Example of the text-stroke-color property:

<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
    <style>
      p {
        margin: 0;
        font-size: 3em;
        -webkit-text-stroke-width: 2px;
        -webkit-text-stroke-color: #8ebf42;
      }
    </style>
  </head>
  <body>
    <h2>Text-stroke-color property example</h2>
    <p>Lorem Ipsum is simply dummy text...</p>
    <input type="color" value="#8ebf42">
  </body>
</html>

Result

Values

Values

ValueDescription
colorSpecifies the color of the stroke. Color names, hexadecimal color codes, rgb(), rgba(), hsl(), hsla() can be used.
initialMakes the property use its default value.
inheritInherits the property from its parents element.


请遵守《互联网环境法规》文明发言,欢迎讨论问题
扫码反馈

扫一扫,反馈当前页面

咨询反馈
扫码关注
返回顶部