text

English[tekst] American[tɛkst]

n. Text, original text; text, textbook; theme; version

v .Send a text message

shadow

##英[ˈʃædəʊ] US[ˈʃædoʊ]

n.Shadow; shadow; ghost; ghost; hiding place

vt. Cast a shadow on; make hazy; track, trail; foreshadow

vi. Gradient; gloomy

adj. Shadow; shadow cabinet; informal

css text-shadow property syntax

Function: The text-shadow property sets a shadow to the text.

Syntax: text-shadow: h-shadow v-shadow blur color

Description: h-shadow is required. The position of the horizontal shadow. Negative values ​​are allowed. v-shadow is required. The position of the vertical shadow. Negative values ​​are allowed. blur is optional. Blurred distance. color is optional. The color of the shadow. See CSS color values.

Comments: The text-shadow property adds one or more shadows to text. This property is a comma-separated list of shades, each shade specified with two or three length values ​​and an optional color value. The omitted length is 0.

css text-shadow property example

<!DOCTYPE html>
<html>
<head>
<style>
h1
{
text-shadow: 5px 5px 5px #FF0000;
}
</style>
</head>
<body>
<h1>文本阴影效果!</h1>
</body>
</html>
Run instance »

Click the "Run instance" button to view the online instance