Home > Article > Web Front-end > How to set text stroke effect in css
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.
Related properties:
text-stroke-color:
(Learning video sharing: css video tutorial)
Attribute value:
Compatibility:
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!