Start this tutorial by opening a document and learning how to change
tags for a paragraph and create a style that redefines the appearance
a tag.
| 1 |
菜单 File > Open,选择Tutorial目录下的Tutorial_1.htm。 |
|
Tutorial_1.htm包含一些没有定义格式的文字。 |
|
开始定义格式,改变第一行文字的标记。 |
| 2 |
在第一行"Bright Blue Cola"中按一下,选择 Text > Format > Heading
1. |
|
这个段落的标记改成了 H1. 字体变大和变黑。注意 文档窗口左下角的标记选择区显示
<body><h1>.
|
|
使用标记选择器来确定当前选中的标记,or点击选择器中的一个标记来选择在文档窗口中难以选中的标记,如 <body>.
|
|
现在通过快捷键赋予不同的段落相同的标记。 |
| 3 |
在段落 "Buy some today!" 中按一下,并按 Control-1 (Windows) 或 Command-1
(Macintosh)。 |
|
这赋予段落 H1标记。 |
|
现在你用H1定义了两个标题,创建一个样式来重新定义H1的显示。 |
| 4 |
选择 Text > Custom Style > Edit Style Sheet。 |
| 5 |
在 Edit Style Sheet 对话框, 按 New。 |
| 6 |
在 New Style 对话框, 按 Redefine HTML Tag。 |
| 7 |
在Tag输入框输入 H1, 按 OK。 |
|
Redefine HTML Tag 选项通知Dreamweaver,你建立的样式将改变文档中所选中标记的文字的格式参数,
现在是 H1。 |
|
你可以定义任何文字的自定义样式。 |
| 8 |
在 H1的样式定义对话框,按 Color, 选择一个亮蓝色,按OK,再按Done。 |
|
注意文档中两个H1的段落变蓝了。 |
 |
|