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

How to use text-outline attribute

青灯夜游
Release: 2019-02-11 16:01:10
Original
4021 people have browsed it

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;
Copy after login

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;
}
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template