Deprecated: Typecho\Widget\Request::getServer(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in D:\PHP_HOME\www\gp_blog\var\Typecho\Widget\Request.php on line 219

Deprecated: Typecho\Request::getServer(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in D:\PHP_HOME\www\gp_blog\var\Typecho\Request.php on line 349

Deprecated: Typecho\Widget\Response::goBack(): Implicitly marking parameter $suffix as nullable is deprecated, the explicit nullable type must be used instead in D:\PHP_HOME\www\gp_blog\var\Typecho\Widget\Response.php on line 158

Deprecated: Typecho\Widget\Response::goBack(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in D:\PHP_HOME\www\gp_blog\var\Typecho\Widget\Response.php on line 158
CSS 文本阴影 - 开发者

文本阴影
text-shadow 属性为文本添加阴影。

最简单的用法是只指定水平阴影(2px)和垂直阴影(2px):
2023-10-04T01:34:48.png

h1 {
  text-shadow: 2px 2px;
}

接下来,向阴影添加颜色(红色):
2023-10-04T01:35:30.png

h1 {
  text-shadow: 2px 2px red;
}

然后,向阴影添加模糊效果(5px):
2023-10-04T01:36:02.png

h1 {
  text-shadow: 2px 2px 5px red;
}

标签: text-shadow

评论已关闭