docs: update README
This commit is contained in:
commit
344bf37b1b
1 changed files with 10 additions and 2 deletions
10
README.md
10
README.md
|
@ -26,7 +26,7 @@
|
||||||
```
|
```
|
||||||
<link rel="stylesheet" href="//unpkg.com/heti/umd/heti.min.css">
|
<link rel="stylesheet" href="//unpkg.com/heti/umd/heti.min.css">
|
||||||
```
|
```
|
||||||
1. 在要作用的容器元素上增加 `class="heti"` 的类名即可:。
|
1. 在要作用的容器元素上增加 `class="heti"` 的类名即可:
|
||||||
```
|
```
|
||||||
<article class="entry heti">
|
<article class="entry heti">
|
||||||
<h1>我的世界观</h1>
|
<h1>我的世界观</h1>
|
||||||
|
@ -34,6 +34,14 @@
|
||||||
……
|
……
|
||||||
</article>
|
</article>
|
||||||
```
|
```
|
||||||
|
1. 使用增强脚本(可选):
|
||||||
|
```
|
||||||
|
<script src="//unpkg.com/heti/umd/heti-addon.min.js"></script>
|
||||||
|
<script>
|
||||||
|
const heti = new Heti('.heti');
|
||||||
|
heti.autoSpacing(); // 自动进行中西文混排美化和标点挤压
|
||||||
|
</script>
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## WIP
|
## WIP
|
||||||
|
|
Loading…
Reference in a new issue