请提供一些美观的艺术字css代码,要求字体为草书
时间: 2024-02-16 15:59:42 浏览: 27
以下是一些使用草书字体的美观艺术字CSS代码:
1. 使用"草书行楷"艺术字体:
```
h1 {
font-family: "caoshu-xingkai", cursive;
font-size: 3rem;
color: #333;
text-shadow: 2px 2px #ccc;
}
h2 {
font-family: "caoshu-xingkai", cursive;
font-size: 2rem;
color: #666;
text-shadow: 1px 1px #ccc;
letter-spacing: 2px;
}
p {
font-family: "caoshu-xingkai", cursive;
font-size: 1.2rem;
color: #888;
text-shadow: 1px 1px #ccc;
letter-spacing: 1px;
line-height: 1.5;
}
```
2. 使用"草书行书"艺术字体:
```
h1 {
font-family: "caoshu-xingshu", cursive;
font-size: 3rem;
color: #333;
text-shadow: 2px 2px #ccc;
}
h2 {
font-family: "caoshu-xingshu", cursive;
font-size: 2rem;
color: #666;
text-shadow: 1px 1px #ccc;
letter-spacing: 2px;
}
p {
font-family: "caoshu-xingshu", cursive;
font-size: 1.2rem;
color: #888;
text-shadow: 1px 1px #ccc;
letter-spacing: 1px;
line-height: 1.5;
}
```
这些代码使用了两种不同的草书字体,分别是"草书行楷"和"草书行书"。它们添加了一些阴影、字距和行距等效果,以使文本更加有吸引力。您可以根据自己的设计需求进行更改。