File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ HTML `<a>` 标签
5
5
6
6
指向 github.com 的超链接:
7
7
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 >
10
10
```
11
11
12
12
## 定义和用法
@@ -47,7 +47,7 @@ HTML `<a>` 标签
47
47
48
48
本例演示如何使用图像作为链接。
49
49
50
- ``` html
50
+ ``` html idoc:preview
51
51
<a href =" https://github.com/jaywcjlove/html-tutorial" >
52
52
<img alt =" HTML Tutorial" src =" https://avatars1.githubusercontent.com/u/1680273?s=460&v=4" width =" 100" height =" 100" >
53
53
</a >
@@ -57,7 +57,7 @@ HTML `<a>` 标签
57
57
58
58
本例演示如何在新窗口打开一个页面,这样的话访问者就无需离开你的站点了。
59
59
60
- ``` html
60
+ ``` html idoc:preview
61
61
<a target =" _blank" href =" https://github.com/jaywcjlove/html-tutorial" >
62
62
HTML Tutorial
63
63
</a >
@@ -67,28 +67,28 @@ HTML `<a>` 标签
67
67
68
68
本例演示如何如何链接到一个邮件。(本例在安装邮件客户端程序后才能工作。)
69
69
70
- ``` html
70
+ ``` html idoc:preview
71
71
<a href =" mailto:someone@example.com" >Send email</a >
72
72
<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 >
73
73
```
74
74
75
75
### 链接电话号码
76
76
77
- ``` html
77
+ ``` html idoc:preview
78
78
<a href =" tel:+8602122278911" >+86 021-22278911</a >
79
79
```
80
80
81
81
### 描点链接
82
82
83
83
链接到同一页面上的另一个部分,页面自定定位到对应位置:
84
84
85
- ``` html
86
- <a href =" #section2 " >跳转到当前页面的 id=section2 的位置</a >
85
+ ``` html idoc:preview
86
+ <a href =" #更多示例 " >跳转到当前页面的 " id=更多示例" 的位置</a >
87
87
```
88
88
89
89
### 执行 JS 脚本
90
90
91
- ``` html
91
+ ``` html idoc:preview
92
92
<a href =" javascript:alert('Hello World!');" >执行 JavaScript</a >
93
93
```
94
94
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ HTML `<abbr>` 标签
5
5
6
6
标记一个缩写:
7
7
8
- ``` html
8
+ ``` html idoc:preview
9
9
The <abbr title =" People's Republic of China" >PRC</abbr > was founded in 1949.
10
10
```
11
11
@@ -33,7 +33,7 @@ The <abbr title="People's Republic of China">PRC</abbr> was founded in 1949.
33
33
34
34
` <abbr> ` 也可以与 [ \< dfn>] ( ./dfn.md ) 一起使用来定义缩写:
35
35
36
- ``` html
36
+ ``` html idoc:preview
37
37
<p ><dfn ><abbr title =" Cascading Style Sheets" >CSS</abbr >
38
38
</dfn > is a language that describes the style of an HTML document.</p >
39
39
```
Original file line number Diff line number Diff line change 19
19
" tutorial"
20
20
],
21
21
"dependencies" : {
22
- "idoc" : " ^1.10.8 "
22
+ "idoc" : " ^1.16.3 "
23
23
}
24
24
}
You can’t perform that action at this time.
0 commit comments