Skip to content

Commit 56681ca

Browse files
committed
doc: update <a> & <abbr> document.
1 parent dd17ab0 commit 56681ca

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

docs/tags/a.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ HTML `<a>` 标签
55

66
指向 github.com 的超链接:
77

8-
```html
9-
<a href="https://github.com/jaywcjlove/html-tutorial">HTML Tutorial</a>
8+
```html idoc:preview
9+
<a target="_blank" href="https://github.com/jaywcjlove">HTML Tutorial</a>
1010
```
1111

1212
## 定义和用法
@@ -47,7 +47,7 @@ HTML `<a>` 标签
4747

4848
本例演示如何使用图像作为链接。
4949

50-
```html
50+
```html idoc:preview
5151
<a href="https://github.com/jaywcjlove/html-tutorial">
5252
<img alt="HTML Tutorial" src="https://avatars1.githubusercontent.com/u/1680273?s=460&v=4" width="100" height="100">
5353
</a>
@@ -57,7 +57,7 @@ HTML `<a>` 标签
5757

5858
本例演示如何在新窗口打开一个页面,这样的话访问者就无需离开你的站点了。
5959

60-
```html
60+
```html idoc:preview
6161
<a target="_blank" href="https://github.com/jaywcjlove/html-tutorial">
6262
HTML Tutorial
6363
</a>
@@ -67,28 +67,28 @@ HTML `<a>` 标签
6767

6868
本例演示如何如何链接到一个邮件。(本例在安装邮件客户端程序后才能工作。)
6969

70-
```html
70+
```html idoc:preview
7171
<a href="mailto:someone@example.com">Send email</a>
7272
<a href="mailto:someone@microsoft.com?cc=someoneelse@microsoft.com&bcc=andsomeoneelse2@microsoft.com&subject=Summer%20Party&body=You%20are%20invited%20to%20a%20big%20summer%20party!">发送邮件!</a>
7373
```
7474

7575
### 链接电话号码
7676

77-
```html
77+
```html idoc:preview
7878
<a href="tel:+8602122278911">+86 021-22278911</a>
7979
```
8080

8181
### 描点链接
8282

8383
链接到同一页面上的另一个部分,页面自定定位到对应位置:
8484

85-
```html
86-
<a href="#section2">跳转到当前页面的 id=section2 的位置</a>
85+
```html idoc:preview
86+
<a href="#更多示例">跳转到当前页面的 "id=更多示例" 的位置</a>
8787
```
8888

8989
### 执行 JS 脚本
9090

91-
```html
91+
```html idoc:preview
9292
<a href="javascript:alert('Hello World!');">执行 JavaScript</a>
9393
```
9494

docs/tags/abbr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ HTML `<abbr>` 标签
55

66
标记一个缩写:
77

8-
```html
8+
```html idoc:preview
99
The <abbr title="People's Republic of China">PRC</abbr> was founded in 1949.
1010
```
1111

@@ -33,7 +33,7 @@ The <abbr title="People's Republic of China">PRC</abbr> was founded in 1949.
3333

3434
`<abbr>` 也可以与 [\<dfn>](./dfn.md) 一起使用来定义缩写:
3535

36-
```html
36+
```html idoc:preview
3737
<p><dfn><abbr title="Cascading Style Sheets">CSS</abbr>
3838
</dfn> is a language that describes the style of an HTML document.</p>
3939
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"tutorial"
2020
],
2121
"dependencies": {
22-
"idoc": "^1.10.8"
22+
"idoc": "^1.16.3"
2323
}
2424
}

0 commit comments

Comments
 (0)