naive-ui/demo/documentation/components/gradientText/zhCN/custom.md

34 lines
492 B
Markdown
Raw Normal View History

2019-12-25 18:06:54 +08:00
# 定制
2020-02-03 21:20:21 +08:00
靠你了。
2019-12-25 18:06:54 +08:00
```html
<n-gradient-text
:gradient="{
from: 'rgb(85, 85, 85)',
to: 'rgb(170, 170, 170)'
}"
>
定制颜色
</n-gradient-text>
<br/>
<n-gradient-text
:gradient="{
deg: 180,
from: 'rgb(85, 85, 85)',
to: 'rgb(170, 170, 170)'
}"
>
定制颜色
</n-gradient-text>
<br/>
<n-gradient-text
gradient="linear-gradient(90deg, red 0%, green 50%, blue 100%)"
>
定制颜色
</n-gradient-text>
```
```css
.n-gradient-text {
font-size: 24px;
}
```