Get the App
SLTechnology News&Howtos  ›  Development  › 

Is there a text stroke in the css style

Shulou Source: shulou.com Published: 2022-06-02 07:13:28 10月03日 Update

Xiaobian to share with you css style has no text stroke, I hope you read this article after all harvest, let's discuss it together!

In css styles, there are text stroke styles. You can style a text element with the "text-stroke" attribute, which sets the thickness and color of a text stroke with the syntax "text element {text-stroke:width color;}."

Operating environment of this tutorial: Windows 10 system, CSS3 && HTML5 version, Dell G3 computer.

Css styles have text strokes.

In css, you can stroke style text with the text-stroke attribute, which is a compound attribute. Sets or retrieves the stroke of text in an object.

It can also be written separately, text-stroke-width: Sets or retrieves the stroke thickness of text in an object, text-stroke-color: Sets or retrieves the stroke color of text in an object.

Written:

Examples are as follows:

Document p{ font-size:50px; -webkit-text-stroke:1px red; }

Text stroke in css style

Output:

After reading this article, I believe you have a certain understanding of "css style has no text stroke", if you want to know more related knowledge, welcome to pay attention to the industry information channel, thank you for reading!

Tags: Text styles attributes objects retrieval elements thickness articles colors writing done tutorials more environment computers knowledge examples systems results industry Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux OPPO Reno macOS vpn Shulou Technology