Home > Article > Web Front-end > How to use text-outline attribute
The text-outline attribute is used to specify the text outline. Through this attribute, the thickness, blur radius, and color of the outline can be set.
CSS3 text-outline attribute
Function: text-outline attribute Specifies text outline.
Syntax:
text-outline: thickness blur color;
thickness: Set the thickness of the outline.
color: The color of the outline.
blur: The blur radius of the outline, which can be omitted.
Note: All mainstream browsers do not support the text-outline attribute.
CSS3 Example of using the text-outline attribute
Set text-outline (text-outline):
p.test { text-outline: 2px 2px #ff0000; }
Above That’s the entire content of this article. For more exciting front-end content, you can follow www.html.cn! ! !
The above is the detailed content of How to use text-outline attribute. For more information, please follow other related articles on the PHP Chinese website!