2025/6/21大约 4 分钟
这是一个测试页面
可以看出用<p>最好(行间距更符合初始状态),<span>+<br />其次(行间距稍大)
搞点颜色 |
用font会有警告以下是几种格式
用font会有警告以下是几种格式
我是黑体字
我是微软雅黑
我是华文彩云
我是红色
我是绿色
我是蓝色
我是尺寸
我是黑体,绿色,尺寸为5
我是楷体,紫色,尺寸为6
我的背景颜色是金红
我是黑体字
我是微软雅黑
我是华文彩云
我是红色
我是绿色
我是蓝色
我是尺寸
我是黑体,绿色,尺寸为18px
我是楷体,紫色,尺寸为24px
我的背景颜色是金红
我是黑体字
我是微软雅黑
我是华文彩云
我是红色
我是绿色
我是蓝色
我是尺寸
我是黑体,绿色,尺寸为18px
我是楷体,紫色,尺寸为24pt
我的背景颜色是金红
以下是思源宋体
人人生而自由,在尊严和权利上一律平等。


测试页面


提示
许嵩牛b
妹妹说紫色很有韵味666
int a;
a=a+5;
b=b+4;
import { hopeTheme } from "vuepress-theme-hope";
export default hopeTheme({
plugins: {
catalog: false,
},
});
// 禁用行号
const line2 = "This is line 2";
const line3 = "This is line 3";
apple
Apple
banana
Banana
orange
Orange
安装 VuePress:
pnpm
pnpm add -D vuepress
yarn
yarn add -D vuepress
npm
npm i -D vuepress
安装 VuePress Theme Hope:
pnpm
pnpm add -D vuepress-theme-hope
yarn
yarn add -D vuepress-theme-hope
npm
npm i -D vuepress-theme-hope
安装 VuePress:
::: code-tabs#shell
@tab pnpm
```bash
pnpm add -D vuepress
```
@tab yarn
```bash
yarn add -D vuepress
```
@tab:active npm
```bash
npm i -D vuepress
```
:::
安装 VuePress Theme Hope:
::: code-tabs#shell
@tab pnpm
```bash
pnpm add -D vuepress-theme-hope
```
@tab yarn
```bash
yarn add -D vuepress-theme-hope
```
@tab:active npm
```bash
npm i -D vuepress-theme-hope
```
:::