广州论坛's Archiver

沉默是金 发表于 2005-6-2 12:03

[转帖]HTML语言贴图教程!(完整篇)

 <p>
论坛开放了HTML标签,这对爱好帖图的人来说不可不为之吸引,看到大家做出有飘亮的背景,一些特效的精美帖子也用不着眼红了,其实那些都是有简单的HTML语法来实现的。</p>
<p><br>
一般也不用了解太多HTML代码的意义,但是想要做出漂亮有风格的帖子,一些简单的代码还是要理解的,这里偶就提供一些简单的HTML语法的解释和使用方法,想要了解更多的可以参照有关这方面的相关教程。</p>
<p><br>
废话偶就少说点,言归正传。(由于同时做出效果来会出错,所以偶会分帖说明效果的)</p>
<p><font size="3" style="line-height: normal"><b>一:背景</b></font></p>
<div class="quote">
        <br>
        &lt;TABLE align=center background=&quot;帖子背景图&quot; border=0 cellPadding=0 cellSpacing=0
        width=&quot;100%&quot; table&gt;<br>
        &lt;TBODY&gt;<br>
        &lt;TR&gt;<br>
        &lt;TD&gt;<p>帖子内容,文字或图片.....</p>
        <p>&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/CENTER&gt;</div>
<p>&lt;TABLE&gt; 的参数设定(常用): </p>
<p>&lt;table <font color="#ff0000" style="line-height: normal">width</font>=&quot;400&quot;
<font color="#ff0000" style="line-height: normal">border</font>=&quot;1&quot;
<font color="#ff0000" style="line-height: normal">cellspacing</font>=&quot;2&quot;
<font color="#ff0000" style="line-height: normal">cellpadding</font>=&quot;2&quot;
<font color="#ff0000" style="line-height: normal">align</font>=&quot;CENTER&quot;
<font color="#ff0000" style="line-height: normal">valign</font>=&quot;TOP&quot;
<font color="#ff0000" style="line-height: normal">background</font>=&quot;myweb.gif&quot;
<font color="#ff0000" style="line-height: normal">bgcolor</font>=&quot;#0000FF&quot;
<font color="#ff0000" style="line-height: normal">bordercolor</font>=&quot;#CF0000&quot;
<font color="#ff0000" style="line-height: normal">bordercolorlight</font>=&quot;#00FF00&quot;
<font color="#ff0000" style="line-height: normal">bordercolordark</font>=&quot;#00FFFF&quot;
<font color="#ff0000" style="line-height: normal">cols</font>=&quot;2&quot;&gt; </p>
<p><font color="#ff0000" size="3" style="line-height: normal">注解:</font></p>
<p><font color="#ff0000" style="line-height: normal">width</font>=&quot;400&quot; <br>
表格宽度,接受绝对值(如 80)及相对值(如 80%)。</p>
<p><font color="#ff0000" style="line-height: normal">border</font>=&quot;1&quot; <br>
表格边框的厚度,不同浏览器有不同的内定值,故请指明。 </p>
<p><font color="#ff0000" style="line-height: normal">cellspacing</font>=&quot;2&quot; <br>
表格格线的厚度</p>
<p><font color="#ff0000" style="line-height: normal">align</font>=&quot;CENTER&quot; <br>
表格的摆放位置(水平),可选值为: <font color="#ff0000" style="line-height: normal">left</font>,
<font color="#ff0000" style="line-height: normal">right</font>,
<font color="#ff0000" style="line-height: normal">center</font></p>
<p><font color="#ff0000" style="line-height: normal">valign=&quot;TOP&quot;. <br>
<font color="#000000" style="line-height: normal">表格内内容的对齐方式(垂直),可选值为</font>:
top, middle, bottom。   </font></p>
<p><font color="#ff0000" style="line-height: normal">background</font>=&quot;myweb.gif&quot;
<br>
表格的背景图片,与 bgcolor 不要同用。 </p>
<p><font color="#ff0000" style="line-height: normal">bgcolor</font>=&quot;#0000FF&quot;
<br>
表格的底色,与 background 不要同用</p>
<p><font color="#ff0000" style="line-height: normal">bordercolor</font>=&quot;#CF0000&quot;
<br>
表格边框颜色</p>
<p><font color="#ff0000" style="line-height: normal">bordercolorlight</font>=&quot;#00FF00&quot;
<br>
表格边框<font color="#008000" style="line-height: normal">向</font>光部分的颜色</p>
<p><font color="#ff0000" style="line-height: normal">bordercolordark</font>=&quot;#00FFFF&quot;
<br>
表格边框<font color="#008000" style="line-height: normal">背</font>光部分的颜色,使用
bordercolorlight 或 bordercolordark 时 bordercolor 将会失效。</p>
<p><font color="#ff0000" style="line-height: normal">cols</font>=&quot;2&quot; <br>
表格栏位数目,只是让浏览器在下载表格时先画出整个表格而已。</p>
<p><b><font color="#ff6a6a" size="4" style="line-height: normal">HTML</font></b><font style="font-weight: normal; font-size: 10pt; line-height: normal; font-style: normal; font-variant: normal" face="黑体" color="red">英语意思是:Hypertext<br>
Marked Language,即超文本标记语言,<font size="+1" style="line-height: normal">是一种用来制作超文本文档的简单标记语言。用HTML编写的超文本文档称为HTML文档,它能独立于各种操作系统平台(如UNIX,WINDOWS等)。自1990年以来HTML就一直被用作World<br>
Wide Web 的信息表示语言,用于描述Homepage的格式设计和它与WWW上其它Homepage<br>
的连结信息。</font>使用HTML语言描述的文件,需要通过WWW浏览器显示出效果。<br>
 </p>
<p>接下来,我们就结合几个实例来观看一下HTML的全貌,以便于我们首先对它有一个整体上的认识,并且体会一下超文本与标记究竟是什么意思。</p>
<p>【<a target="_blank" style="text-decoration: none; color: #000000" href="http://www.gggl.gov.cn/fwgc/jiaocheng/html/yball.gif"><font color="#000000" style="line-height: normal">实例一</font></a>】   【<a target="_blank" style="text-decoration: none; color: #000000" href="http://www.moonyh.com/bbs/dispbbs.asp?boardID=15&ID=718"><font color="#000000" style="line-height: normal">实例二</font></a>】   【<a target="_blank" style="text-decoration: none; color: #000000" href="http://www.moonyh.com/bbs/dispbbs.asp?boardID=15&ID=545"><font color="#000000" style="line-height: normal">实例三</font></a>】</p>
<p>
<img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/yball.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;">通过HTML可以表现出丰富多彩的设计风格</p>
<p>图片调用:<font color="#800080" style="line-height: normal">&lt;IMG SRC=&quot;文件名&quot;&gt;<br>
<br>
</font> 文字格式:<font color="#800080" style="line-height: normal">&lt;FONT SIZE=&quot;+5<br>
&quot; COLOR=&quot;00FFFF&quot;&gt;文字&lt;/FONT&gt;</font></p>
<p>
<img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/yball.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;">通过HTML可以实现页面之间的跳转</p>
<p>页面跳转:<font color="#800080" style="line-height: normal">〈A HREF=&quot;文件路径/文件名&quot;&gt;&lt;/A&gt;</font></p>
<p>
<img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/yball.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;">通过HTML可以展现多媒体的效果</p>
<p>声频:<font color="#800080" style="line-height: normal">&lt;EMBED SRC=&quot;音乐文件名&quot;<br>
AUTOSTART=true&gt;<br>
<br>
</font>视频:<font color="#800080" style="line-height: normal">&lt;EMBED SRC=&quot;视频文件名&quot;<br>
AUTOSTART=true&gt;</font></p>
<p>
从以上的例子,我们就可以理解超文本与标记的含义了。所谓超文本,因为它可以加入图片、声音、动画、影视等内容,因为它可以从一个文件跳转到另一个文件,与世界各地主机的文件连接。所谓标记,就是它采用了一系列的指令符号来控制输出的效果,这些指令符号用“&lt;标签名字 属性&gt;”来表示。</p>
<h3><font color="#0080c0" style="line-height: normal">HTML的基本结构</font></h3>
<p>超文本文档分文档头和文档体两部分,在文档头里,对这个文档进行了一些必要的定义,文档体中才是要显示的各种文档信息。</p>
<hr width="100%">
<p>&lt;HTML&gt;</p>
<p>&lt;HEAD&gt;<br>
<br>
头 部 信 息<br>
<br>
&lt;/HEAD&gt;</p>
<p>&lt;BODY&gt;<br>
<br>
文 档 主 体, 正 文 部 分<br>
<br>
&lt;/BODY&gt;</p>
<p>&lt;/HTML&gt;</p>
<p>   其中&lt;HTML&gt;在最外层, 表示这对标记间的内容是HTML文 档。我们还会看到一些Hompage省略&lt;HTML&gt;标记,<br>
因为.html 或.htm 文件被Web浏览器默认为是HTML文档。&lt;HEAD&gt;
之间包括文档的头部信息,如文档总标题等,若不需头部信息则可省略此标记。&lt;BODY&gt;<br>
标记一般不省略, 表示正文内容的开始。</p>
<hr width="100%">
<p>下面是一个最基本的超文本文档的源代码:</p>
<p><img src="http://home4u1.china.com/HOME1/00/10/50/70/08/0000801570/h1.jpg"></p>
<p><b><font size="+1" style="line-height: normal" color="#800080">超文本中的标签</font></b></p>
<p>
  刚刚接触超文本,遇到的最大的障碍就是一些用“&lt;”和“&gt;”括起来的句子,我们称它为标签,是用来分割和标记文本的元素,以形成文本的布局、文字的格式及五彩缤纷的画面。</p>
<p><b><u><font size="+1" style="line-height: normal" color="#408080">1. 单标签<br>
<br>
</font></u></b>某些标记称为“单标签”,因为它只需单独使用就能完整地表达意思,这类标记的语法是:<br>
 </p>
<p>&lt; 标签名称&gt; </p>
<p>最常用的单标签是&lt;BR&gt;, 它表示换行。 </p>
<p><b><u><font size="+1" style="line-height: normal" color="#408080">2.双标签<br>
<br>
</font></u></b>  另一类标记称为“双标签”,它由“始标签”和“尾标签”两部分构成,必须成对使用,<br>
其中始标签告诉Web浏览器从此处开始执行该标记所表示的功能,而尾标签告诉Web浏览器在这<br>
里结束该功能。始标签前加一个斜杠(/)即成为尾标记。这类标记的语法是: </p>
<p>&lt;标签&gt; 内 容&lt;/ 标签&gt; </p>
<p>  其中“内容” 部分就是要被这对标记施加作用的部分。例如你想突出对某段文字的显示,就将此段文字放在一&lt;EM&gt;<br>
&lt;/EM&gt;标记中:</p>
<p>&lt;EM&gt;第一:&lt;/EM&gt; </p>
<p><b><u><font size="+1" style="line-height: normal" color="#408080">3.标签属性</font></u></b></p>
<p>  许多单标记和双标记的始标记内可以包含一些属性, 其语法是:</p>
<p>  &lt; 标签名字 属性1 属性2 属性3 … &gt; </p>
<p>&nbsp;&nbsp;&nbsp; 各属性之间无先后次序,属性也可省略(即取默认值),例如单标记&lt;HR&gt;表示在文档当前位置画一条<br>
<br>
水平线(horizontal line),一般是从窗口中当前行的最左端一直画到最右端。<br>
带一些属性: </p>
<pre><font size="+1" style="line-height: normal">&lt;HR SIZE=3 ALIGN=LEFT WIDTH=&quot;75%&quot;&gt;</pre>
<p>  其中SIZE属性定义线的粗细,属性值取整数,缺为1;ALIGN属性表示对齐方式,可取LEFT(左对齐,<br>
缺省值),CENTER(居中),RIGHT(右对齐);WIDTH 属性定义线的长度,可取相对值,(由一对 &quot; &quot;<br>
号括起来的百分数,表示相对于充满整个窗口的百分比),也可取绝对值(用整数表示的屏幕像素点的<br>
个数,如WIDTH=300),缺省值是&quot;100%&quot;。</p>
<p><b><font size="+1" style="line-height: normal" color="#800080">标题</font></b></p>
<p>  一般文章都有标题、副标题、章和节等结构,HTML中也提供了相应的标题标签&lt;Hn&gt;,其中n为标题的等HTML总共提供六个等级的标题,n越小,标题字号就越大,以下列出所有等级的标题:</p>
<hr width="100%">
<p><font size="-1" style="line-height: normal">〈H1&gt;…&lt;/H1&gt;     第一级标题</font></p>
<p><font size="-1" style="line-height: normal">〈H2&gt;…&lt;/H2&gt;     第二级标题</font></p>
<p><font size="-1" style="line-height: normal">〈H3&gt;…&lt;/H3&gt;     第三级标题</font></p>
<p><font size="-1" style="line-height: normal">〈H4&gt;…&lt;/H4&gt;     第四级标题</font></p>
<p><font size="-1" style="line-height: normal">〈H5&gt;…&lt;/H5&gt;     第五级标题</font></p>
<p><font size="-1" style="line-height: normal">〈H6&gt;…&lt;/H6&gt;     第六级标题</font></p>
<hr width="100%">
<p>请看下面的例子:</p>
<p>&lt;html&gt;<br>
<br>
&lt;head&gt;<br>
<br>
&lt;title&gt;标题示例&lt;/title&gt;<br>
<br>
&lt;/head&gt;</p>
<p>&lt;body&gt;</p>
<p>这是一行普通文字&lt;P&gt;<br>
<br>
〈H1&gt;一级标题&lt;/H1&gt;<br>
<br>
〈H2&gt;二级标题&lt;/H2&gt;<br>
<br>
〈H3&gt;三级标题&lt;/H3&gt;<br>
<br>
〈H4&gt;四级标题&lt;/H4&gt;<br>
<br>
〈H5&gt;五级标题&lt;/H5&gt;<br>
<br>
〈H6&gt;六级标题&lt;/H6&gt;<br>
<br>
&lt;/body&gt;</p>
<p>&lt;/html&gt;</p>
<p>这是一行普通文字 <br>
<br>
 </p>
</font></font>
<font style="font-weight: normal; line-height: normal; font-style: normal; font-variant: normal; font-size: 20pt" face="黑体" color="red">
<p>一级标题</p>
</font>
<font size="+1" style="line-height: normal; font-weight: normal; font-size: 10pt; font-style: normal; font-variant: normal" face="黑体" color="red">
<h2>二级标题</h2>
<h3>三级标题</h3>
<h4>四级标题</h4>
<h5>五级标题</h5>
<h6>六级标题</h6>
<hr width="100%">
<p>  从结果可以看出,每一个标题的字体为黑体字,内容文字前后都插入空行。</p>
<p><b><font size="+1" style="line-height: normal" color="#0080c0">换行&lt;br&gt;</font></b></p>
<p>  在编写HTML文件时,我们不必考虑太细的设置,也不必理会段落过长的部分会被浏览器切掉。因为,在HTML语言规范里,每当浏览器窗口被缩小时,浏览器会自动将右边的文字转折至下一行。所以,编写者对于自己需要断行的地方,应加上&lt;br&gt;标签。</p>
<p>  请看下面的例子:</p>
<hr width="100%">
<p>&lt;html&gt;<br>
<br>
&lt;head&gt;<br>
<br>
&lt;title&gt;无换行示例&lt;/title&gt;<br>
<br>
&lt;/head&gt;</p>
<p>&lt;body&gt;<br>
<br>
登鹳雀楼 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。<br>
<br>
&lt;/body&gt;</p>
<p>&lt;/html&gt;</p>
<p> </p>
<p><br>
登鹳雀楼 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。</p>
<hr width="100%">
<p>&lt;html&gt;<br>
<br>
&lt;head&gt;<br>
<br>
&lt;title&gt;换行示例&lt;/title&gt;<br>
<br>
&lt;/head&gt; <br>
&lt;body&gt;<br>
<br>
登鹳雀楼&lt;br&gt;白日依山尽,&lt;br&gt;黄河入海流。&lt;br&gt;欲穷千里目,&lt;br&gt;更上一层楼。<br>
<br>
&lt;/body&gt;</p>
<p>&lt;/html&gt;</p>
<p><br>
<br>
登鹳雀楼<br>
白日依山尽,<br>
黄河入海流。<br>
欲穷千里目,<br>
更上一层楼。</p>
</font>

奶茶 发表于 2005-6-2 12:06

恶补撒~老大的教程简单实用~置顶吧。。。+FF~~~先划帐哈~:)

沉默是金 发表于 2005-6-2 12:19

<table class="tablebody2" style="TABLE-LAYOUT: fixed; WORD-BREAK: break-all" width="90%" border="0">
        <tr>
                <td style="font-size: 11pt; line-height: 17pt; font-family: 宋体" width="100%">
                <b><font size="+1" style="line-height: normal" color="#0080c0">段落标签&lt;P&gt;</font></b><p>&nbsp;&nbsp;&nbsp;
                为了排列的整齐、清晰,文字段落之间,我们常用&lt;P&gt;&lt;/P&gt;来做标记。文件段落的开始由&lt;P&gt;来标记,段落的结束由&lt;/P&gt;来标记,&lt;/P&gt;是可以省略的,因为下一个&lt;P&gt;的开始就意味着上一个&lt;P&gt;的结束。</p>
                <p>  &lt;P&gt;标签还有一个属性ALING,它用来指名字符显示时的对齐方式,一般值有CENTER、LEFT、RIGHT三种。</p>
                <p>  下面,我们用两个例子来说明这个标签的用法。</p>
                <hr width="100%">
                <p>&lt;html&gt;<br>
                <br>
                &lt;head&gt;<br>
                <br>
                &lt;title&gt;段落标签&lt;/title&gt;<br>
                <br>
                &lt;/head&gt;</p>
                <p>&lt;body&gt;<br>
                <br>
                &lt;P ALIGN=CENTER&gt;<br>
                <br>
                浣溪沙 &lt;P&gt;一曲新词酒一杯,去年天气旧亭台,夕阳西下几时回。&lt;P&gt;无可奈何花落去,似曾相识燕归来。小园香径几徘徊。&lt;/P&gt;<br>
                <br>
                &lt;/body&gt;</p>
                <p>&lt;/html&gt;</p>
                <p align="center">
                <font style="font-weight: normal; font-size: 10pt; line-height: normal; font-style: normal; font-variant: normal" face="黑体" color="red">
                <br>
                浣溪沙  <br>
                <br>
 </p>
                <p>一曲新词酒一杯,去年天气旧亭台,夕阳西下几时回。 <br>
                <br>
 </p>
                <p>无可奈何花落去,似曾相识燕归来。小园香径几徘徊。</font></p>
 <hr width="100%">
                <p>&lt;html&gt;<br>
                <br>
                &lt;head&gt;<br>
                <br>
                &lt;title&gt;段落标签&lt;/title&gt;<br>
                <br>
                &lt;/head&gt;</p>
                <p>&lt;body&gt;<br>
                <br>
                登鹳雀楼&lt;P&gt;白日依山尽,&lt;br&gt;黄河入海流。&lt;br&gt;欲穷千里目,&lt;br&gt;更上一层楼。&lt;/P&gt;<br>
                <br>
                &lt;/body&gt;</p>
                <p>&lt;/html</p>
                <p>
                <font style="font-weight: normal; font-size: 10pt; line-height: normal; font-style: normal; font-variant: normal" face="黑体" color="red">
                登鹳雀楼 <br>
                <br>
 </p>
                <p>白日依山尽,<br>
                黄河入海流。<br>
                欲穷千里目,<br>
                更上一层楼。</p>
                <p><b><font size="+1" style="line-height: normal" color="#004080">
                水平线段&lt;HR&gt;</font></b></p>
                <p><br>
                  这个标签可以在屏幕上显示一条水平线,用以分割页面中的不同部分。&lt;HR&gt;有三个属性:<br>
                <br>
                   <font color="#800080" style="line-height: normal">size</font> 水平线的宽度<br>
                <br>
                   <font color="#800080" style="line-height: normal">width</font>
                水平线的长,用占屏幕宽度的百分比或象素值来表示<br>
                <br>
                   <font color="#800080" style="line-height: normal">align</font>
                水平线的对齐方式,有LEFT RIGHT<br>
                CENTER三种<br>
                <br>
                   <font color="#800080" style="line-height: normal">noshade</font>
                线段无阴影属性,为实心线段</p>
                <p>  我们可以用几个例子来说明这线段的用法:</p>
                <hr width="100%">
                <p>
                <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/yball.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"><b><font color="#000000" style="line-height: normal">线段粗细的设定<br>
                <br>
                </font></b>&lt;HTML&gt;<br>
                <br>
                &lt;HEAD&gt;<br>
                <br>
                &lt;TITLE&gt;线段粗细的设定&lt;/TITLE&gt;<br>
                <br>
                &lt;/HEAD&gt;<br>
                <br>
                &lt;BODY&gt;<br>
                <br>
                &lt;P&gt;这是第一条线段,无size设定,取内定值SIZE=1来显示&lt;BR&gt;<br>
                &lt;HR&gt;<br>
                &lt;P&gt;这是第二条线段,SIZE=5&lt;BR&gt;<br>
                &lt;HR SIZE=5&gt;<br>
                &lt;P&gt;这是第三条线段,SIZE=10&lt;BR&gt;<br>
                &lt;HR SIZE=10&gt;<br>
                &lt;/BODY&gt;<br>
                &lt;/HTML&gt;<br>
                <br>
                这是第一条线段,无size设定,取内定值SIZE=1来显示<br>
 </p>
                <hr>
                <p>这是第二条线段,SIZE=5</p>
                <hr SIZE="5">
                <p>这是第三条线段,SIZE=10</p>
                <hr SIZE="10"><hr width="100%">
                <h3>
                <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/yball.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"><b><font size="+0" style="line-height: normal">线段长度的设定</font></b></h3>
                <p>&lt;HTML&gt;<br>
                <br>
                &lt;HEAD&gt;<br>
                <br>
                &lt;TITLE&gt;线段长度的设定&lt;/TITLE&gt;<br>
                <br>
                &lt;/HEAD&gt;<br>
                &lt;BODY&gt;<br>
                <br>
                &lt;P&gt;这是第一条线段,无WIDTH设定,取WIDTH内定值100%来显示&lt;BR&gt;<br>
                <br>
                &lt;HR SIZE=3&gt;<br>
                <br>
                &lt;P&gt;这是第二条线段,WIDTH=50(点数方式)&lt;BR&gt;<br>
                <br>
                &lt;HR WIDTH=50 SIZE=5&gt;<br>
                <br>
                &lt;P&gt;这是第三条线段,WIDTH=50%(百分比方式)&lt;BR&gt;<br>
                <br>
                &lt;HR WIDTH=50% SIZE=7&gt;<br>
                <br>
                &lt;/BODY&gt;<br>
                &lt;/HTML&gt;<br>
                <br>
                这是第一条线段,无WIDTH设定,取WIDTH内定值100%来显示<br>
 </p>
                <hr SIZE="3">
                <p>这是第二条线段,WIDTH=50(点数方式)<br>
 </p>
                <hr width="50" SIZE="5">
                <p><br>
 </p>
                <p>这是第三条线段,WIDTH=50%(百分比方式)<br>
 </p>
                <hr width="50%" SIZE="7">
                <p><br>
 </p>
                <hr width="100%">
                <p>
                <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/yball.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"><b>线段排列的设定<br>
                <br>
                </b>&lt;HTML&gt;<br>
                <br>
                &lt;HEAD&gt;<br>
                <br>
                &lt;TITLE&gt;线段排列的设定&lt;/TITLE&gt;<br>
                <br>
                &lt;/HEAD&gt;<br>
                <br>
                &lt;BODY&gt;<br>
                <br>
                &lt;P&gt;这是第一条线段,无ALIGN设定,(取内定值CENTER显示)&lt;BR&gt;<br>
                <br>
                &lt;HR WIDTH=50% SIZE=5&gt;<br>
                <br>
                &lt;P&gt;这是第二条线段,向左对齐BR&gt;<br>
                <br>
                &lt;HR WIDTH=60% SIZE=7 ALIGN=LEFT&gt;<br>
                <br>
                &lt;P&gt;这是第三条线段,向右对齐&lt;BR&gt;<br>
                <br>
                &lt;HR WIDTH=70% SIZE=2 ALIGN=RIGHT&gt;<br>
                <br>
                &lt;/BODY&gt;<br>
                <br>
                &lt;/HTML&gt;</p>
                <p>这是第一条线段,无ALIGN设定,(取内定值CENTER显示)<br>
 </p>
                <hr width="50%" SIZE="5">
                <p> </p>
                <p>这是第二条线段,向左对齐BR&gt;<br>
 </p>
                <hr align="left" width="60%" SIZE="7">
                <p>这是第三条线段,向右对齐<br>
 </p>
                <hr align="right" width="70%" SIZE="2">
                <p> </p>
                <hr width="100%">
                <p>
                <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/yball.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"><b>无阴影的设定<br>
                </b><font size="+0" style="line-height: normal">&lt;HTML&gt;<br>
                <br>
                &lt;HEAD&gt;<br>
                <br>
                &lt;TITLE&gt;</font>无阴影的设定<font size="+0" style="line-height: normal">&lt;/TITLE&gt;<br>
                <br>
                &lt;/HEAD&gt;<br>
                <br>
                &lt;BODY&gt;<br>
                <br>
                &lt;P&gt;这是第一条线段,无NOSHADE设定,取内定值阴影效果来显示&lt;BR&gt;<br>
                <br>
                &lt;HR WIDTH=80% SIZE=5&gt;<br>
                <br>
                &lt;P&gt;这是第二条线段,有NOSHADE设定&lt;BR&gt;<br>
                <br>
                &lt;HR WIDTH=80% SIZE=7 ALIGN=LEFT NOSHADE&gt;<br>
                <br>
                &lt;/BODY&gt;<br>
                <br>
                &lt;/HTML&gt;</font><br>
                <br>
                <br>
                这是第一条线段,无NOSHADE设定,取内定值阴影效果来显示<br>
 </p>
                <hr width="80%" SIZE="5">
                <p><br>
                这是第二条线段,有NOSHADE设定<br>
 </p>
                <hr align="left" width="80%" noShade SIZE="7"><hr width="100%">
                <p><b><font size="+1" style="line-height: normal" color="#0080c0">
                文字的大小设置</font></b></p>
                <p>  提供设置字号大小的是FONT,FONT有一个属性SIZE,通过指定SIZE属性就能设置字号大小,而SIZE属性的有效值范围为1-7,其中缺省值为3。我们可以SIZE属性值之前加上“+”、“-”字符,来指定相对于字号初始值的增量或减量。</p>
                <p>  请看示例:</p>
                <hr width="100%">
                <p>&lt;html&gt;<br>
                <br>
                &lt;head&gt;<br>
                <br>
                &lt;title&gt;字号大小&lt;/title&gt;<br>
                <br>
                &lt;/head&gt;</p>
                <p>&lt;body&gt;<br>
                <br>
                &lt;font size=7&gt;这是size=7的字体&lt;/font&gt;&lt;P&gt;<br>
                <br>
                &lt;font size=6&gt;这是size=6的字体&lt;/font&gt;&lt;P&gt;<br>
                <br>
                &lt;font size=5&gt;这是size=5的字体&lt;/font&gt;&lt;P&gt;<br>
                <br>
                &lt;font size=4&gt;这是size=4的字体&lt;/font&gt;&lt;P&gt;<br>
                <br>
                &lt;font size=3&gt;这是size=3的字体&lt;/font&gt;&lt;P&gt;<br>
                <br>
                &lt;font size=2&gt;这是size=2的字体&lt;/font&gt;&lt;P&gt;<br>
                <br>
                &lt;font size=1&gt;这是size=1的字体&lt;/font&gt;&lt;P&gt;<br>
                <br>
                &lt;font size=-1&gt;这是size=-1的字体&lt;/font&gt;&lt;P&gt;<br>
                <br>
                &lt;/body&gt;</p>
                <p>&lt;/html&gt;</p>
                <p><br>
                <br>
                <font size="7" style="line-height: normal">这是size=7的字体</font> <br>
 </p>
                <p><font size="6" style="line-height: normal">这是size=6的字体</font> <br>
 </p>
                <p><font size="5" style="line-height: normal">这是size=5的字体</font> <br>
 </p>
                <p><font size="4" style="line-height: normal">这是size=4的字体</font> <br>
 </p>
                <p><font size="3" style="line-height: normal">这是size=3的字体</font> <br>
 </p>
                <p><font size="2" style="line-height: normal">这是size=2的字体</font> <br>
 </p>
                <p><font size="1" style="line-height: normal">这是size=1的字体</font> <br>
 </p>
                <p><font size="-1" style="line-height: normal">这是size=-1的字体</font> </p>
                <p><b><font size="+1" style="line-height: normal" color="#0080c0">
                文字的字体与样式</font></b></p>
                <p>
                  HTML4.0提供了定义字体的功能,用FACE属性来完成这个工作。FACE的属性值可以是本机上的任一字体类型,但有一点麻烦的是,只有对方的电脑中装有相同的字体才可以在他的浏览器中出现你预先设计的风格。</p>
                <p>  &lt;font face=&quot;字体&quot;&gt;</p>
                <p>请看例子:</p>
                <hr width="100%">
                <p>&lt;HTML&gt;<br>
                <br>
                &lt;HEAD&gt;<br>
                <br>
                &lt;TITLE&gt;字体&lt;/TITLE&gt;<br>
                <br>
                &lt;/HEAD&gt;<br>
                <br>
                &lt;BODY&gt;<br>
                <br>
                &lt;CENTER&gt;<br>
                <br>
                &lt;FONT face=&quot;楷体_GB2312&quot;&gt;欢迎光临&lt;/FONT&gt;&lt;P&gt;<br>
                <br>
                &lt;FONT face=&quot;宋体&quot;&gt;欢迎光临&lt;/FONT&gt;&lt;P&gt;<br>
                <br>
                &lt;FONT face=&quot;仿宋_GB2312&quot;&gt;欢迎光临&lt;/FONT&gt;&lt;P&gt;<br>
                <br>
                <br>
                &lt;FONT face=&quot;黑体&quot;&gt;欢迎光临&lt;/FONT&gt;&lt;P&gt;<br>
                <br>
                &lt;FONT face=&quot;Arial&quot;&gt;Welcom my homepage.&lt;/FONT&gt;&lt;P&gt;<br>
                <br>
                &lt;FONT face=&quot;Comic Sans MS&quot;&gt;Welcom my homepage.&lt;/FONT&gt;&lt;P&gt;<br>
                <br>
                &lt;/CENTER&gt; <br>
                <br>
                &lt;/BODY&gt; <br>
                <br>
                &lt;/HTML&gt;</p>
                <p> </p>
                <center><font face="楷体_GB2312" style="line-height: normal">欢迎光临</font>
                <br>
 <p><font face="宋体" style="line-height: normal">欢迎光临</font> <br>
 </p>
                <p><font face="仿宋_GB2312" style="line-height: normal">欢迎光临</font> <br>
 </p>
                <p><font face="黑体" style="line-height: normal">欢迎光临</font> <br>
 </p>
                <p><font face="Arial" style="line-height: normal">Welcom my homepage.</font>
                <br>
 </p>
                <p><font face="Comic Sans MS" style="line-height: normal">Welcom my
                homepage.</font> <br>
 </p>
                <p> </p>
                </center><hr width="100%">
                <p>  为了让文字富有变化,或者为了着意强调某一部分,HTML提供了一些标签产生这些效果,现将常用的标签列举如下:</p>
                <p> </p>
                <p> </p>
                <p>&lt;B&gt;     &lt;/B&gt;     粗体              <b><font color="#0000ff" style="line-height: normal">HTML语言</font></b></p>
                <p> </p>
                <p> </p>
                <p>&lt;I&gt;     &lt;/I&gt;     斜体              <i><font color="#0000ff" style="line-height: normal">HTML语言</font></i></p>
                <p> </p>
                <p> </p>
                <p>&lt;U&gt;     &lt;/U&gt;     加下划线            <u><font color="#0000ff" style="line-height: normal">HTML语言</font></u></p>
                <p> </p>
                <p> </p>
                <p>&lt;TT&gt;     &lt;TT&gt;     打字机字体           <tt><font color="#0000ff" style="line-height: normal">HTML语言</font></tt></p>
                <p> </p>
                <p> </p>
                <p>&lt;BIG&gt;    &lt;/BIG&gt;    大型字体            <font size="+1" style="line-height: normal" color="#0000ff">HTML语言</font></p>
                <p> </p>
                <p> </p>
                <p>&lt;SMALL&gt;   &lt;/SMALL&gt;   小型字体            <font size="+1" style="line-height: normal" color="#0000ff">HTML语言</font></p>
                <p> </p>
                <p> </p>
                <p>&lt;BLINK&gt;   &lt;/BLINK&gt;   闪烁效果            <blink><font color="#0000ff" style="line-height: normal">HTML语言</font></blink></p>
                <p> </p>
                <p> </p>
                <p>&lt;EM&gt;     &lt;/EM&gt;     表示强调,一般为斜体      <i><font color="#0000ff" style="line-height: normal">HTML语言</font></i></p>
                <p> </p>
                <p> </p>
                <p>&lt;STRONG&gt;   &lt;/STRONG&gt;   表示特别强调,一般为粗体    <b><font color="#0000ff" style="line-height: normal">HTML语言</font></b></p>
                <p> </p>
                <p> </p>
                <p>&lt;CITE&gt;    &lt;/CITE&gt;    用于引证、举例,一般为斜体   <i><font color="#0000ff" style="line-height: normal">HTML语言</font></i></p>
                <p> </p>
                <p>现在我们用一个实例来看看效果: <br>
 </p>
                <hr width="100%">
                <p>&lt;html&gt;<br>
                <br>
                &lt;head&gt; <br>
                <br>
                &lt;title&gt;字体样式&lt;/title&gt; <br>
                <br>
                &lt;/head&gt;</p>
                <p>&lt;body&gt;<br>
                <br>
                &lt;B&gt;黑体字&lt;/B&gt;<br>
                <br>
                &lt;P&gt; &lt;I&gt;斜体字&lt;/I&gt;<br>
                <br>
                &lt;P&gt; &lt;U&gt;加下划线&lt;/U&gt;<br>
                <br>
                &lt;P&gt; &lt;BIG&gt;大型字体&lt;/BIG&gt;<br>
                <br>
                &lt;P&gt; &lt;SMALL&gt;小型字体&lt;/SMALL&gt;<br>
                <br>
                &lt;P&gt; &lt;BLINK&gt;闪烁效果&lt;/BLINK&gt;<br>
                <br>
                &lt;P&gt;&lt;EM&gt;Welcome&lt;/EM&gt;<br>
                <br>
                &lt;P&gt;&lt;STRONG&gt;Welcome&lt;/STRONG&gt;<br>
                <br>
                &lt;P&gt;&lt;CITE&gt;Welcom&lt;/CITE&gt;&lt;/P&gt;<br>
                <br>
                &lt;/body&gt;</p>
                <p>&lt;/html&gt;</p>
                <p><b>黑体字</b> </p>
                <p><i>斜体字</i> <br>
 </p>
                <p><u>加下划线</u> <br>
 </p>
                <p><big>大型字体</big> <br>
 </p>
                <p><small>小型字体</small> <br>
 </p>
                <p><blink>闪烁效果</blink> <br>
 </p>
                <p> </p>
                <p><em>Welcome</em> <br>
 </p>
                <p><b>Welcome</b> <br>
 </p>
                <p><cite>Welcom</cite></p>
                <p> </p>
                <cite>
                <p><b><font size="+1" style="line-height: normal" color="#0082bf">文字的颜色</font></b></p>
                <p><br>
                <br>
                <br>
 </p>
                <p> </p>
                <p>  文字颜色设置格式如下:</p>
                <p> </p>
                <p> </p>
                <p>   &lt;font color=color_value&gt;…&lt;/font&gt;</p>
                <p> </p>
                <p> </p>
                <p>  这里的颜色值可以是一个十六进制数(用“#”作为前缀),也可以是以下16种颜色名称。<br>
 </p>
                <hr width="100%">
                <p> </p>
                <p> </p>
                <table cellSpacing="10" cellPadding="0" width="80%">
                        <tr>
                                <td width="16" style="font-family: 宋体; font-size: 12px; line-height: 15px">
                                <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/black.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"></td>
                                <caption> <p> </p>
                                </caption>
                                <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
                                Black = &quot;#000000&quot;?</td>
                                <caption> <p> </p>
                        </caption>
                        <td width="16" style="font-family: 宋体; font-size: 12px; line-height: 15px">
                        <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/green.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"></td>
                        <caption> <p> </p>
                        </caption>
                        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
                        Green = &quot;#008000&quot;</td>
                        <caption> </caption>
                </tr>
                <caption> <p> </p>
                </caption>
                <tr>
                        <td width="16" style="font-family: 宋体; font-size: 12px; line-height: 15px">
                        <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/silver.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"></td>
                        <caption> <p> </p>
                        </caption>
                        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
                        Silver = &quot;#C0C0C0&quot;?</td>
                        <caption> <p> </p>
                </caption>
                <td width="16" style="font-family: 宋体; font-size: 12px; line-height: 15px">
                <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/lime.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"></td>
                <caption> <p> </p>
        </caption>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">Lime =
        &quot;#00FF00&quot;</td>
        <caption> </caption>
</tr>
<caption> <p> </p>
</caption>
<tr>
        <td width="16" style="font-family: 宋体; font-size: 12px; line-height: 15px">
        <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/gray.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"></td>
        <caption> <p> </p>
        </caption>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">Gray =
        &quot;#808080&quot;?</td>
        <caption> <p> </p>
</caption>
<td width="16" style="font-family: 宋体; font-size: 12px; line-height: 15px">
<img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/olive.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"></td>
<caption> <p> </p>
</caption>
<td style="font-family: 宋体; font-size: 12px; line-height: 15px">Olive =
&quot;#808000&quot;</td>
<caption> </caption>
</tr>
<caption> <p> </p>
</caption>
<tr>
        <td width="16" style="font-family: 宋体; font-size: 12px; line-height: 15px">
        <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/white.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"></td>
        <caption> <p> </p>
        </caption>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">White = &quot;#FFFFFF&quot;?</td>
        <caption> <p> </p>
</caption>
<td width="16" style="font-family: 宋体; font-size: 12px; line-height: 15px">
<img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/yellow.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"></td>
<caption> <p> </p>
</caption>
<td style="font-family: 宋体; font-size: 12px; line-height: 15px">Yellow =
&quot;#FFFF00&quot;</td>
<caption> </caption>
</tr>
<caption> <p> </p>
</caption>
<tr>
        <td width="16" style="font-family: 宋体; font-size: 12px; line-height: 15px">
        <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/maroon.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"></td>
        <caption> <p> </p>
        </caption>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">Maroon =
        &quot;#800000&quot;?</td>
        <caption> <p> </p>
</caption>
<td width="16" style="font-family: 宋体; font-size: 12px; line-height: 15px">
<img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/navy.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"></td>
<caption> <p> </p>
</caption>
<td style="font-family: 宋体; font-size: 12px; line-height: 15px">Navy = &quot;#000080&quot;</td>
<caption> </caption>
</tr>
<caption> <p> </p>
</caption>
<tr>
        <td width="16" style="font-family: 宋体; font-size: 12px; line-height: 15px">
        <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/red.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"></td>
        <caption> <p> </p>
        </caption>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">Red =
        &quot;#FF0000&quot;?</td>
        <caption> <p> </p>
</caption>
<td width="16" style="font-family: 宋体; font-size: 12px; line-height: 15px">
<img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/blue.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"></td>
<caption> <p> </p>
</caption>
<td style="font-family: 宋体; font-size: 12px; line-height: 15px">Blue = &quot;#0000FF&quot;</td>
<caption> </caption>
</tr>
<caption> <p> </p>
</caption>
<tr>
        <td width="16" style="font-family: 宋体; font-size: 12px; line-height: 15px">
        <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/purple.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"></td>
        <caption> <p> </p>
        </caption>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">Purple =
        &quot;#800080&quot;?</td>
        <caption> <p> </p>
</caption>
<td width="16" style="font-family: 宋体; font-size: 12px; line-height: 15px">
<img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/teal.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"></td>
<caption> <p> </p>
</caption>
<td style="font-family: 宋体; font-size: 12px; line-height: 15px">Teal = &quot;#008080&quot;</td>
<caption> </caption>
</tr>
<caption> <p> </p>
</caption>
<tr>
        <td width="16" style="font-family: 宋体; font-size: 12px; line-height: 15px">
        <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/fuchsia.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"></td>
        <caption> <p> </p>
        </caption>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">Fuchsia =
        &quot;#FF00FF&quot;?</td>
        <caption> <p> </p>
</caption>
<td width="16" style="font-family: 宋体; font-size: 12px; line-height: 15px">
<img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/aqua.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"></td>
<caption> <p> </p>
</caption>
<td style="font-family: 宋体; font-size: 12px; line-height: 15px">Aqua = &quot;#00FFFF&quot;</td>
<caption> </caption>
</tr>
<caption> </caption>
</table>
 </P>
<p> </p>
<hr width="100%">
<p>请看例子:</p>
<p>&lt;HTML&gt;<br>
<br>
&lt;HEAD&gt; <br>
<br>
&lt;TITLE&gt;文字的颜色&lt;/TITLE&gt; <br>
<br>
&lt;/HEAD&gt; <br>
&lt;BODY BGCOLOR=000080&gt; <br>
<br>
&lt;CENTER&gt;<br>
<br>
&lt;FONT COLOR=WHITE&gt;色彩斑斓的世界&lt;/FONT&gt;&lt;BR&gt;<br>
<br>
&lt;FONT COLOR=RED&gt;色彩斑斓的世界&lt;/FONT&gt; &lt;BR&gt;<br>
<br>
&lt;FONT COLOR=#00FFFF&gt;色彩斑斓的世界&lt;/FONT&gt;&lt;BR&gt;<br>
<br>
&lt;FONT COLOR=#FFFF00&gt;色彩斑斓的世界&lt;/FONT&gt;&lt;BR&gt;<br>
<br>
&lt;FONT COLOR=#FFFFFF&gt;色彩斑斓的世界&lt;/FONT&gt; &lt;BR&gt;<br>
<br>
&lt;FONT COLOR=#00FF00&gt;色彩斑斓的世界&lt;/FONT&gt;&lt;BR&gt;<br>
<br>
&lt;FONT COLOR=#C0C0C0&gt;色彩斑斓的世界&lt;/FONT&gt;&lt;BR&gt;<br>
<br>
&lt;/CENTER&gt;<br>
<br>
&lt;/BODY&gt;<br>
<br>
<br>
<br>
&lt;/HTML&gt;</p>
<p><font color="white" style="line-height: normal">色彩斑斓的世界</font><font color="red" style="line-height: normal">色彩斑斓的世界</font><font color="#00ffff" style="line-height: normal">色彩斑斓的世界</font><font color="#ffff00" style="line-height: normal">色彩斑斓的世界</font>
</p>
<p><font color="#ffffff" style="line-height: normal">色彩斑斓的世界</font><font color="#00ff00" style="line-height: normal">色彩斑斓的世界</font><font color="#c0c0c0" style="line-height: normal">色彩斑斓的世界</font>
</p>
<p><b><font size="+1" style="line-height: normal" color="#0080c0">位置控制</font></b></p>
<p><br>
  通过ALIGN属性可以选择文字或图片的对齐方式,LEFT表示向左对齐,RIGHT表示向右对齐,CENTER表示居中。基本语法如下:</p>
<p>     &lt;DIV ALIGN=#&gt;   #=left/right/center</p>
<hr width="100%">
<p><b><font size="+1" style="line-height: normal" color="#800080">例:</font></b></p>
<p>&lt;html&gt;<br>
<br>
&lt;head&gt;<br>
<br>
&lt;title&gt;位置控制&lt;/title&gt;<br>
<br>
&lt;/head&gt;</p>
<p>&lt;body&gt;<br>
<br>
&lt;div align=left&gt;<br>
<br>
你好!&lt;br&gt;<br>
<br>
&lt;div align=right&gt;<br>
<br>
你好!&lt;br&gt;<br>
<br>
&lt;div align=center&gt;<br>
<br>
你好!&lt;br&gt;<br>
<br>
&lt;/body&gt;<br>
<br>
&lt;/html&gt;</p>
<p> </p>
<p>
<font style="font-weight: normal; font-size: 20pt; line-height: normal; font-style: normal; font-variant: normal" face="黑体" color="red">
</p>
<div align="left">
        <br>
        你好!<br>
        <br>
        <br>
 </div>
<div align="right">
        <br>
        你好!<br>
        <br>
        <br>
 </div>
<div align="center">
        <br>
        你好!<br>
 </div>
</font>
<p align="center"> </p>
<div align="center">
        <hr width="100%"></div>
<p align="center"> </p>
<p align="center">  另外,ALIGN属性也常常用在其它标签中,引起其内容位置的变动。</p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center">  如:&lt;P ALIGN=#&gt;<br>
<br>
    &lt;HR ALIGN=#&gt;   #=left/right/center<br>
<br>
    &lt;H1 ALIGN=#〉</p>
<p align="center"> </p>
<p align="right"><b><font size="+1" style="line-height: normal" color="#0080c0">
综合示例</font></b></p>
<p align="left"><br>
<br>
<br>
 </p>
<p align="right"> </p>
<p align="right">  前面我们所讲是单独使用一个标签的方法,在实际的编写中,许多标签和一些属性是结合起来使用的,<br>
<br>
比如:<br>
<br>
    &lt;FONT COLOR=&quot;#&quot; SIZE=#&gt;文字&lt;/FONT&gt;<br>
<br>
    &lt;B&gt;&lt;U&gt;文字&lt;/U&gt;&lt;/B&gt;</p>
<p align="right"> </p>
<p align="right"> </p>
<p align="right"> </p>
<div align="right">
        <hr width="100%"></div>
<p align="right"> </p>
<p align="right"> </p>
<p align="right"> </p>
<p align="right"><b><font size="+1" style="line-height: normal" color="#800080">
【例】</font></b></p>
<p align="right"> </p>
<p align="right"> </p>
<p align="right">&lt;HTML&gt; <br>
<br>
&lt;HEAD&gt;<br>
<br>
&lt;TITLE&gt;字体样式&lt;/TITLE&gt; <br>
<br>
&lt;/HEAD&gt;</p>
<p align="right"> </p>
<p align="right"> </p>
<p align="right">&lt;BODY&gt;<br>
<br>
&lt;P&gt;<br>
<br>
&lt;B&gt;&lt;U&gt;&lt;FONT COLOR=&quot;#A35252&quot;&gt;&lt;FONT SIZE=+1&gt;白<br>
居 易&lt;/FONT&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/B&gt;<br>
<br>
&lt;/P&gt;</p>
<p align="right"> </p>
<p align="right"> </p>
<p align="right">&lt;P&gt;  白居易(772-846年)字乐天,晚居香山,自号香山居士,原籍太原。白居易是唐代新乐府运动的倡&lt;BR&gt;<br>
导者,是中国文学史上堪与屈原、李白、杜甫并列的第一流大诗人。 &lt;/P&gt;</p>
<p align="right"> </p>
<p align="right"> </p>
<p align="right">&lt;P&gt;  白居易出身于小官僚家庭。大约在贞元三年( 787年)的年初,十六岁的白居易带着自己的诗稿,到&lt;BR&gt;<br>
了京都长安。老诗人顾况看到这位不速之客的姓名有“居易”二字,便很恢谐地说:“长安米贵,居住不<br>
易!”及披卷读到《赋得古原草送别》中的&lt;/P&gt;</p>
<p align="right"> </p>
<p align="right"> </p>
<p align="right">&lt;P ALIGN=center&gt;&lt;FONT
COLOR=&quot;#3C7777&quot;&gt;&lt;CITE&gt;“离离原上草,一岁一枯荣;野火烧不尽,春风吹又生”&lt;/CITE&gt;&lt;/FONT&gt;&lt;/P&gt;</p>
<p align="right"> </p>
<p align="right"> </p>
<p align="right">&lt;P&gt;时,
不禁大为惊奇,拍案称绝,马上改变语气,郑重地说:“能写出这样好的诗句,‘居’下去是不难的,刚才我是同你开开玩笑罢了。”从此,白居易的诗名大振。<br>
&lt;/P&gt;</p>
<p align="right"> </p>
<p align="right"> </p>
<p align="right">&lt;P&gt;  白居易生活的时代,主要是建中、元和、长庆时期(公元781-824年)。是唐朝走向衰败的极端苦难动荡的时代。<br>
&lt;/P&gt;</p>
<p align="right"> </p>
<p align="right"> </p>
<p align="right">&lt;P&gt;  白居易是继杜甫之后,我国伟大的现实主义诗人。
他的贡献是在总结我国自《诗经》以来现实主义诗歌创作经验的基础上,建立了现实主义的诗歌理论,掀起了一个波澜壮阔的现实主义的诗歌运动——新乐府运动,创作了大量优秀的现实主义诗篇。<br>
&lt;/P&gt;</p>
<p align="right"> </p>
<p align="right"> </p>
<p align="right">&lt;/BODY&gt; <br>
<br>
&lt;/HTML&gt; </p>
<p align="left"><br>
【显示结果】<br>
 </p>
<p align="right"><b><u><font color="#a35252" style="line-height: normal">白 居 易</font></u></b></p>
<p align="right"> </p>
<p align="right"> </p>
<p align="right">  白居易(772-846年)字乐天,晚居香山,自号香山居士,原籍太原。白居易是唐代新乐府运动的倡<br>
<br>
导者,是中国文学史上堪与屈原、李白、杜甫并列的第一流大诗人。 </p>
<p align="right"> </p>
<p align="right"> </p>
<p align="right">  白居易出身于小官僚家庭。大约在贞元三年( 787年)的年初,十六岁的白居易带着自己的诗稿,到<br>
<br>
了京都长安。老诗人顾况看到这位不速之客的姓名有“居易”二字,便很恢谐地说:“长安米贵,居住<br>
不 易!”及披卷读到《赋得古原草送别》中的</p>
<p align="right"> </p>
<p align="right"> </p>
<p align="center"><font color="#3c7777" style="line-height: normal">
“离离原上草,一岁一枯荣;野火烧不尽,春风吹又生”<br>
 </font></p>
<p align="right"> </p>
<p align="right"> </p>
<p align="right">时, 不禁大为惊奇,拍案称绝,马上改变语气,郑重地说:“能写出这样好的诗句,‘居’下去是不难<br>
的,刚才我是同你开开玩笑罢了。”从此,白居易的诗名大振。 </p>
<p align="right"> </p>
<p align="right"> </p>
<p align="right">  白居易生活的时代,主要是建中、元和、长庆时期(公元781-824年)。是唐朝走向衰败的极端苦难<br>
动荡的时代。 </p>
<p align="right"> </p>
<p align="right"> </p>
<p align="right">  白居易是继杜甫之后,我国伟大的现实主义诗人。 他的贡献是在总结我国自《诗经》以来现实主义<br>
诗歌创作经验的基础上,建立了现实主义的诗歌理论,掀起了一个波澜壮阔的现实主义的诗歌运动——新乐<br>
府运动,创作了大量优秀的现实主义诗篇。<font face="宋体" color="#000000" size="2" style="line-height: normal">
</font></p>
<p align="right"> </p>
<p><b><font size="+1" style="line-height: normal" color="#0080c0">插入图形</font></b></p>
<p align="left"><br>
<br>
<br>
 </p>
<p> </p>
<p>  超文本之所以在很短的时间内如此广泛的受到人们的青睐,很重要的一个原因时它能支持多媒体的特性,如图象、声音、动画等。</p>
<p> </p>
<p> </p>
<p> </p>
<hr width="100%">
<p> </p>
<p> </p>
<p> </p>
<p><b><font size="+1" style="line-height: normal" color="#0080c0">基本格式</font></b></p>
<p> </p>
<p> </p>
<p>  超文本支持的图象格式一般有X
Bitmap(XBM)、GIF、JPEG三种,所以我们对图片处理后要保存为这三种格式中的任何一种,这样才可以在浏览器中看到。<br>
<br>
  插入图象的标签是&lt;IMG&gt;,其格式为:</p>
<p> </p>
<p> </p>
<p>     <b><font color="#004080" style="line-height: normal">&lt;IMG SRC=&quot;图形文件地址&quot;&gt;</font></b></p>
<p> </p>
<p> </p>
<p>
  SRC属性指明了所要链接的图象文件地址,这个图形文件可以是本地机器上的图形,也可以是位于远端主机上的图形。地址的表示方法可以沿用上一篇内容“文件的链接”中URL地址表示方法。</p>
<p> </p>
<p> </p>
<p>  例: &lt;IMG SRC=&quot;images/ball.gif&quot;&gt;</p>
<p> </p>
<p> </p>
<p>  IMG还有两个属性是HEIGHT和WIDTH,分别表示图形的高和宽。通过这两个属性,可以改变图形的大小,如果没有设置,图形按原大显示:</p>
<p> </p>
<p> </p>
<p>  例:</p>
<p> </p>
<p> </p>
<center>
<table>
        <caption><br>
        <br>
        <br>
        <br>
        <br>
 </caption>
        <tr>
                <td style="font-family: 宋体; font-size: 12px; line-height: 15px">&lt;IMG
                SRC=&quot;flowers0.jpg&quot;&gt;</td>
                <caption> <p> </p>
                </caption>
                <td style="font-family: 宋体; font-size: 12px; line-height: 15px">  &lt;IMG
                SRC=&quot;flowers0.jpg&quot; width=&quot;200&quot; heigth=&quot;100&quot;&gt;</td>
                <caption> </caption>
        </tr>
        <caption> <p> </p>
        </caption>
        <tr>
                <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
                <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/flowers0.jpg" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"></td>
                <caption> <p> </p>
                </caption>
                <td style="font-family: 宋体; font-size: 12px; line-height: 15px"><center>
                <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/flowers0.jpg" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"></center>
                </td>
                <caption> </caption>
</tr>
<caption> </caption>
</table>
</center>
<p> </p>
<p> </p>
<p> </p>
<hr width="100%">
<p align="left"><br>
<br>
<br>
<b><font size="+1" style="line-height: normal" color="#0080c0">图形与文字的对齐排列:</font></b>
</p>
<p> </p>
<p> </p>
<p> </p>
<p>  由IMG中的ALIGN属性来设置图文的对齐方式,有以下几种:</p>
<p> </p>
<p> </p>
<table cellSpacing="0" cellPadding="5" width="100%" border="1">
        <caption><br>
        <br>
        <br>
        <br>
        <br>
 </caption>
        <tr>
                <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
                ALIGN=top</td>
                <caption> <p> </p>
                </caption>
                <td style="font-family: 宋体; font-size: 12px; line-height: 15px">〈IMG
                SRC=&quot;love.gif&quot; ALIGN=top&gt;美丽的心灵</td>
                <caption> <p> </p>
        </caption>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px"> <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/love.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"> 美丽的心灵</td>
        <caption> </caption>
</tr>
<caption> <p> </p>
</caption>
<tr>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">ALIGN=middle</td>
        <caption> <p> </p>
        </caption>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">〈IMG
        SRC=&quot;love.gif&quot; ALIGN=middle&gt;美丽的心灵</td>
        <caption> <p> </p>
</caption>
<td style="font-family: 宋体; font-size: 12px; line-height: 15px"> <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/love.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"> 美丽的心灵</td>
<caption> </caption>
</tr>
<caption> <p> </p>
</caption>
<tr>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">ALIGN=buttom</td>
        <caption> <p> </p>
        </caption>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">〈IMG
        SRC=&quot;love.gif&quot; ALIGN=buttom&gt;美丽的心灵</td>
        <caption> <p> </p>
</caption>
<td style="font-family: 宋体; font-size: 12px; line-height: 15px"> <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/love.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"> 美丽的心灵</td>
<caption> </caption>
</tr>
<caption> <p> </p>
</caption>
<tr>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
        ALIGN=texttop</td>
        <caption> <p> </p>
        </caption>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">〈IMG
        SRC=&quot;love.gif&quot; ALIGN=textop&gt;美丽的心灵</td>
        <caption> <p> </p>
</caption>
<td style="font-family: 宋体; font-size: 12px; line-height: 15px"> <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/love.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"> 美丽的心灵</td>
<caption> </caption>
</tr>
<caption> <p> </p>
</caption>
<tr>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
        ALIGN=baseline</td>
        <caption> <p> </p>
        </caption>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">〈IMG
        SRC=&quot;love.gif&quot; ALIGN=baeline&gt;美丽的心灵</td>
        <caption> <p> </p>
</caption>
<td style="font-family: 宋体; font-size: 12px; line-height: 15px"> <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/love.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"> 美丽的心灵</td>
<caption> </caption>
</tr>
<caption> <p> </p>
</caption>
<tr>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">ALIGN=left</td>
        <caption> <p> </p>
        </caption>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">〈IMG
        SRC=&quot;love.gif&quot; ALIGN=left&gt;美丽的心<br>
        <br>
        灵,有着数不清的爱心,象天空里的星星,明<br>
        <br>
        亮晶莹。</td>
        <caption> <p> </p>
</caption>
<td style="font-family: 宋体; font-size: 12px; line-height: 15px">
<img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/love.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;">美丽的心灵,<br>
<br>
有着数不清的<br>
<br>
爱心,象天空<br>
<br>
里的星星,明<br>
<br>
亮晶莹。</td>
<caption> </caption>
</tr>
<caption> <p> </p>
</caption>
<tr>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">ALIGN=right</td>
        <caption> <p> </p>
        </caption>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">〈IMG
        SRC=&quot;love.gif&quot; ALIGN=right&gt;美丽的心<br>
        <br>
        灵,有着数不清的爱心,象天空里的星星,明<br>
        <br>
        亮晶莹。</td>
        <caption> <p> </p>
</caption>
<td style="font-family: 宋体; font-size: 12px; line-height: 15px">
<img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/love.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;">美丽的心灵,<br>
<br>
有着数不清的<br>
<br>
爱心,象天空<br>
<br>
里的星星,明<br>
<br>
亮晶莹。</td>
<caption> </caption>
</tr>
<caption> </caption>
</table>
 </P>
<p> </p>
<p> </p>
<hr width="100%">
<p align="left"><br>
<br>
<br>
<br>
<br>
<b><font size="+1" style="line-height: normal" color="#0080c0">图文之间的距离设置:</font></b>
</p>
<p> </p>
<p> </p>
<p> </p>
<p>  在HTML文件里图形水平位置的配置,可由HSPACE属性来完成,其垂直位置的配置,由VSPACE来完成。</p>
<p> </p>
<p> </p>
<table cellSpacing="0" cellPadding="5" border="1">
        <caption><br>
        <br>
        <br>
        <br>
        <br>
 </caption>
        <tr>
                <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
                &lt;IMA SRC=&quot;love.gif&quot; &gt;</td>
                <caption> <p> </p>
                </caption>
                <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
                <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/love.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;">美丽的心灵</td>
                <caption> </caption>
        </tr>
        <caption> <p> </p>
        </caption>
        <tr>
                <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
                &lt;IMA SRC=&quot;love.gif&quot; HSPACE=30&gt;</td>
                <caption> <p> </p>
                </caption>
                <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
                <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/love.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;">美丽的心灵</td>
                <caption> </caption>
</tr>
<caption> <p> </p>
</caption>
<tr>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
        &lt;IMA SRC=&quot;love.gif&quot; VSPACE=30&gt;</td>
        <caption> <p> </p>
        </caption>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
        <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/love.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;">美丽的心灵</td>
        <caption> </caption>
</tr>
<caption> </caption>
</table>
 </P>
<p> </p>
<p> </p>
<hr width="100%">
<p align="left"><br>
<br>
<br>
<b><font size="+1" style="line-height: normal" color="#0080c0">图形按钮:</font></b>
</p>
<p> </p>
<p> </p>
<p> </p>
<p>  图形按钮就是使用者通过在图形上单击,就能连接到某个地址上去。很简单,我们只要调用一下前面的知识就可以完成了。其基本格式如下:</p>
<p> </p>
<p> </p>
<p>  &lt;A HREF=&quot;资源地址&quot;&gt;&lt;IMG SRC=&quot;图形文件地址&quot;&gt;&lt;/A&gt;</p>
<p> </p>
<p> </p>
<p>例:</p>
<p> </p>
<p> </p>
<p>  &lt;A HREF=&quot;index.htm&quot;&gt;&lt;IMA SRC=&quot;html.gif&quot;&gt;&lt;/A&gt;</p>
<p> </p>
<p> </p>
<p><font color="#800080" style="line-height: normal">显示结果为:</font></p>
<p> </p>
<p> </p>
<p>
<a target="_blank" style="text-decoration: none; color: #000000" href="http://www.tietu.com/">
<img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.moonyh.com/bbs/uploadFace/19_20041301838036828.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;"></a></p>
<p> </p>
<p> </p>
<p>  图形上出现小手了,我们试一下吧!</p>
<p><b><font size="+1" style="line-height: normal" color="#0080c0">播放音乐</font></b></p>
<p><br>
<br>
<br>
 </p>
<p> </p>
<p>  HTML除了可以插入图形之外,还可以播放音乐和视频等。用浏览器可以播放的音乐格式有:MIDI音乐、WAV音乐、AU格式。</p>
<p> </p>
<p> </p>
<p> </p>
<hr width="100%">
<p> </p>
<p> </p>
<p> </p>
<p><b><font size="+1" style="line-height: normal" color="#0080c0">点播音乐</font></b></p>
<p> </p>
<p> </p>
<p>  将音乐做成一个链接,只需用鼠标在上面单击,就可以听到动人的音乐了,这样做的方法很简单:</p>
<p> </p>
<p> </p>
<p>   <b><font color="#004080" style="line-height: normal">&lt;A HREF=&quot;音乐地址&quot;&gt;乐曲名&lt;/A&gt;</font></b></p>
<p> </p>
<p> </p>
<p>例如:<img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/yball.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;">播放一段MIDI音乐:</p>
<p> </p>
<p> </p>
<p>   &lt;A HREF=&quot;midi.mid&quot;&gt;MIDI音乐&lt;/A&gt;</p>
<p> </p>
<p> </p>
<p>   <img onmousewheel="return bbimg(this)" style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.gggl.gov.cn/fwgc/jiaocheng/html/yball.gif" onload="javascript:if(this.width&gt;screen.width-500)this.style.width=screen.width-500;">播放一段AU格式音乐:</p>
<p> </p>
<p> </p>
<p>   &lt;A HREF=&quot;you.au&quot;&gt;同桌的你-AU音乐&lt;/A&gt;    <br>
<br>
<br>
 </p>
<p>  把我们喜欢的音乐收集起来,作成一个音乐库,随时都可以让自己和别人徜徉在音乐的海洋中!</p>
<p> </p>
<p> </p>
<p> </p>
<hr width="100%">
<p> </p>
<p> </p>
<p> </p>
<p><b><font size="+1" style="line-height: normal" color="#0080c0">自动载入音乐</font></b></p>
<p> </p>
<p> </p>
<p>  前面,我们是借助链接来实现网上播放音乐这一功能的,我们还可以让音乐自动载入,你可以让它出现控制面板或当背景音乐来使用。基本语法:</p>
<p> </p>
<p> </p>
<p>    <b><font color="#004080" style="line-height: normal">&lt;EMBED SRC=&quot;音乐文件地址&quot;&gt;</font></b></p>
<p> </p>
<p> </p>
<p><b><font color="#ff8040" style="line-height: normal">属性有:</font></b></p>
<p> </p>
<p> </p>
<table cellSpacing="0" cellPadding="5" border="1">
        <caption><br>
        <br>
        <br>
        <br>
        <br>
 </caption>
        <tr>
                <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
                SRC=&quot;FILENAME&quot;</td>
                <caption> <p> </p>
                </caption>
                <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
                设定音乐文件的路径</td>
                <caption> </caption>
        </tr>
        <caption> <p> </p>
        </caption>
        <tr>
                <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
                AUTOSTART=TRUE/FALSE</td>
                <caption> <p> </p>
                </caption>
                <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
                是否要音乐文件传送完就自动播放,TRUE是要,FALSE是不要,默认为FALSE</td>
                <caption> </caption>
</tr>
<caption> <p> </p>
</caption>
<tr>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
        LOOP=TRUE/FALSE</td>
        <caption> <p> </p>
        </caption>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
        设定播放重复次数,LOOP=6表示重复6次,TRUE表示无限次播放,FALSE播放一次即停止。</td>
        <caption> </caption>
</tr>
<caption> <p> </p>
</caption>
<tr>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
        STARTIME=&quot;分:秒&quot;</td>
        <caption> <p> </p>
        </caption>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
        设定乐曲的开始播放时间,如20秒后播放写为STARTIME=00:20</td>
        <caption> </caption>
</tr>
<caption> <p> </p>
</caption>
<tr>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">VOLUME=0-100</td>
        <caption> <p> </p>
        </caption>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
        设定音量的大小。如果没设定的话,就用系统的音量。</td>
        <caption> </caption>
</tr>
<caption> <p> </p>
</caption>
<tr>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">WIDTH HEIGHT</td>
        <caption> <p> </p>
        </caption>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">设定控制面板的大小</td>
        <caption> </caption>
</tr>
<caption> <p> </p>
</caption>
<tr>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">HIDDEN=TRUE</td>
        <caption> <p> </p>
        </caption>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">隐藏控制面板</td>
        <caption> </caption>
</tr>
<caption> <p> </p>
</caption>
<tr>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">
        CONTROLS=CONSOLE/SMALLCONSOLE</td>
        <caption> <p> </p>
        </caption>
        <td style="font-family: 宋体; font-size: 12px; line-height: 15px">设定控制面板的样子</td>
        <caption> </caption>
</tr>
<caption> </caption>
</table>
 </P>
<p> </p>
<p><b><font size="+1" style="line-height: normal" color="#800080">例:<br>
<br>
</font></b><font size="-2" style="line-height: normal">
*************************************</font></p>
<p> </p>
<p> </p>
<p>&lt;html&gt;<br>
<br>
&lt;head&gt;<br>
<br>
&lt;title&gt;播放音乐&lt;/title&gt;<br>
<br>
&lt;/head&gt;<br>
<br>
  &lt;EMBED SRC=&quot;midi.mid&quot; autostart=true hidden=true loop=true&gt;</p>
<p> </p>
<p> </p>
<p>  作为背景音乐来播放。<br>
<br>
&lt;/body&gt;<br>
<br>
&lt;/html&gt;</p>
<p> </p>
<p> </p>
<p><b><font size="+1" style="line-height: normal" color="#800080">例:<br>
<br>
</font></b><font size="-2" style="line-height: normal">
*************************************</font></p>
<p> </p>
<p> </p>
<p>&lt;html&gt;<br>
<br>
&lt;head&gt;<br>
<br>
&lt;title&gt;播放音乐&lt;/title&gt;<br>
<br>
&lt;/head&gt;<br>
<br>
  &lt;EMBED SRC=&quot;midi.mid&quot; loop=true width=145 height=60&gt;</p>
<p> </p>
<p> </p>
<p>&lt;P&gt;  出现控制面板了,你可以控制它的开与关,还可以调节音量的大小。&lt;/P&gt;<br>
<br>
&lt;/body&gt;<br>
<br>
&lt;/html&gt;</p>
<p>
<embed src="http://www.wcnw.net/midi/midi1/24.mid" width="145" height="60" type="audio/mid" loop="