Home  >  Article  >  Web Front-end  >  How to use text-outline attribute

How to use text-outline attribute

青灯夜游
青灯夜游Original
2019-02-11 16:01:103832browse

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.

How to use text-outline attribute

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!

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