Home  >  Article  >  Web Front-end  >  How to set text stroke effect in css

How to set text stroke effect in css

王林
王林Original
2020-11-20 17:26:0410420browse

How to set the text stroke effect in css: You can use the text-stroke-color attribute to set it, such as [-webkit-text-stroke-color:#ff0;]. The attribute text-stroke-color is used to set or retrieve the stroke color of text in the object.

How to set text stroke effect in css

Related properties:

text-stroke-color: property sets or retrieves the stroke color of the text in the object

(Learning video sharing: css video tutorial)

Attribute value:

: Specify the stroke color of the text.

Compatibility:

How to set text stroke effect in css

Example:





text-stroke-color


描边的文字:

我是被描了2像素黄边的文字

Related recommendations: CSS tutorial

The above is the detailed content of How to set text stroke effect in css. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn