htlm 基础教程
html语言教程文字代码
一、一般的文字代码:
<*P align=center><*FONT color=颜face=隶书size=5>插入文字<*/FONT><*/P>
二、文字向左移动代码:
<*marquee directio=left><*font face=华文楷体size=4 color==#ff0000>海阔天空<*/font><*/marquee>
三、文字向上滚动代码:
<*marquee direction=up scrollamount=2><*center><*font color="#ff0000" size="5" face="华文楷体">欢迎您来到海阔天空<*/font><*/marquee>
四、文字向下滚动代码:
<*marquee direction=down scrollamount=2><*center><*font color="#ff0000" size="5" face="华文楷体">希望大家认真看教程<*/font><*/marquee>
五、有背景的文字:
<*TABLE cellSpacing=0 cellPadding=0 align=center background=yyg.gslz/ad/logo.gif>
<*TBODY>
<*TR>
<*TD >
<*TABLE align=center bgColor=red>
<*TBODY>
<*TR>
<*TD align=middle>
<*P><*FONT face=文鼎花瓣体color=#336699><*B>我<*/B><*/FONT><*/P>
<*P><*FONT face=文鼎花瓣体color=#336699><*B>爱<*/B><*/FONT><*/P>
<*P><*FONT face=文鼎花瓣体color=#336699><*B>海<*/B><*/FONT><*/P>
<*P><*FONT face=文鼎花瓣体color=#336699><*B>阔<*/B><*/FONT><*/P>
<*P><*FONT face=文鼎花瓣体color=#336699><*B>天<*/B><*/FONT><*/P>
font weight bolder
<*P><*FONT face=文鼎花瓣体color=#336699><*B>空<*/B><*/FONT><*/P>
<*/TD><*/TR><*/TBODY><*/TABLE><*/FONT><*/TD><*/TR><*/TBODY><* /TABLE>
六、有阴影的文字:
1.<*P align=center><*FONT style="FONT-SIZE: 30pt; FILTER: glow(color=#00FFFF); WIDTH: 100%;
COLOR: #f8f8ff; LINE-HEIGHT: 150%; FONT-FAMILY: 华文彩云"><*B>文字<*/B><*/FONT><*/P>
2.<*CENTER><*FONT ><*B>文字<*/B><*/FONT><*/CENTER>
3.<*CENTER><*FONT color=red >海阔天空<*/FONT><*/CENTER>
4.<*DIV align=center><*DIV > <*FONT color=#FFFF00 face=隶书size=7><*center><*BR> 海阔天空<*BR> 学习制作休闲娱乐<*BR><*BR> <*BR><*BR> <*/div><*/div>
七、空心字的代码:
<*CENTER><*FONT >海阔天空<*/FONT><*/CENTER>
八、突出边框的代码:
1.<*CENTER><*FONT >海阔天空<*/FONT><*/CENTER>
2.<*center><*SPAN
style='width:400;filter:glow(color=red,strength=2);color:white;font-size:20pt'>< *FONT color=#000000 face=隶书size=7>海阔天空文字教程<*/FONT><*/SPAN><*/center>
九、五颜六的字:
<*font color="#FF0000">海<*/font><*font color="#D52A00">阔<*/font><*font color="#AB5400">天<*/font><*font color="#817E00">空<*/font><*font color="#57A800">真<*/font><*font color="#2DD200">好<*/font>
十、环绕字:
<*SCRIPT language=javascript>function lib2bwcheck(){this.ver=navigator.appVersion;this.agent=navigator.userAgent;this .ElementById?1:0;this.opera5=this.agent.indexOf("Opera 5")>-1;this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; this.ie6=(this.ver.indexOf("MSIE 6")
>-1 && this.dom && !this.opera5)?1:0;this.ie4=(document.all && !this.dom && !this.opera5)?1:0;this.ie=this.ie4||this.ie5||this.ie6;this.mac=this.agent.index Of("Mac")>-1;this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0;this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5);return this;}var bw=new lib2bwcheck();var px = bw.ns4||window.opera?"":"px";function run() {var cx, cy, a;var css, obj, nest, ooo;if ((document.all) && (!bw.opera5)) {movy = document.body.clientHeight-64;movx = document.body.clientWidth-50;} else {movx = window.innerWidth-50; movy = window.innerHeight-64;}for (var i=0; isdto || oy<*sdfrom) { yspeed=-yspeed; oy+=yspeed;}ox+=xspeed;setTimeout("run()",tpause);}var sxfrom=50;var sxto=40;var syfrom=50;var syto=20;var sdfrom=50;var sdto=100;var yspeed=1;var xspeed=4;var pcol=Number(255).toString(16);var tpause=20;var schar="欢迎光临海阔天空☆望大家学习愉快☆";var maxitems = schar.length;var t=0;t = pcol.length;for (var i=0; i<6-t; i++) pcol = "0"+pcol;if (document.all) {movy = document.body.clientHeight-64;movx = document.body.clientWidth-50;} else {movx = window.innerWidth-50;movy = window.innerHeight-64;}var ox, oy;ox=Math.PI; oy=sdfrom;xspeed = xspeed*Math.PI/180;pa = new Array();for (var i=0; i<*maxitems; i++) {document.writeln("<*div id=s"+i+" style=position:absolute;top:280;z-index>");document.writeln("<*table
style=filter:glow(color=red strength=1)><*th><*font color=#00ffff face=华文楷体
style=font:39pt>"+schar.substr(i,1)+"<*/font><*/th><*/table>");document.wri teln("<*/div>");}setTimeout("run()",tpause);<*/SCRIPT>
十一、上下左右移动:
<*center><*table width=500><*tr><*td><*font color=#991144&><*marquee behavior=alternate><*MARQUEE behavior=alternate><*FONT face=宋体color=red size=4><*MARQUEE direction=up behavior=alternate width=60 height=120>欢<*/MARQUEE><*FONT color=orange> <*MARQUEE direction=up behavior=alternate width=60 height=80>迎<*/MARQUEE><*FONT color=#FF8CA9><*MARQUEE direction=up behavior=alternate width=60 height=120>学<*/MARQUEE><*FONT color=green> <*MARQUEE direction=up behavior=alternate width=60 height=80>习<*/MARQUEE><*FONT color=blue><*MARQUEE direction=up behavior=alternate width=60 height=120>指<*/MARQUEE><*FONT color=lime> <*MARQUEE direction=up behavior=alternate width=60 height=80>导<*/MARQUEE><*/FONT><*/FONT><*/FONT><*/FONT><*/FONT><*/FONT>< */marquee><*/font><*/td><*/tr><*/table><*/center>
十二、向两边扩展的代码:
<*FONT color=#FFFF00 face=隶书size=7><*MARQUEE height=50 width=240>海阔天空期待你的浪
漫之旅!<*/FONT><*/MARQUEE><*FONT color=#00FF00 face=隶书size=7><*MARQUEE direction=right height=50 width=240>!旅之漫浪的你待期空天阔海<*/MARQUEE><*/FONT>
十三、向上循环的代码:
<*marquee direction=up height=200 scrollamount=1 scrolldelay=90 <*CENTER><*FONT >海阔天空期待你的浪漫之旅!<*/FONT><*/CENTER><*/marquee>
十四、向左移动(乎隐乎现)的代码:
<*CENTER><*MARQUEE height=87 scrollAmount=2 width=80 scrolldely="10" align="center"><*B><*FONT color=#FFFF00 face=汉鼎繁中变>海<*IMG src="99/UploadFile/2004-6/20046734212802.gif";><*/FONT> <*/B><*/MARQUEE> <*MARQUEE height=87 scrollAmount=2 width=80 scrolldely="10" align="center"><*B><*FONT color=#FFFF00 face=汉鼎繁中变style="FONT-SIZE: 30pt; FONT-STYLE: normal; FONT-VARIANT: normal;
FONT-WEIGHT: normal; LINE-HEIGHT: normal">阔<*IMG src="99/UploadFile/2004-6/20046734212802.gif" ;><*/FONT ><*/B><*/MARQUEE> <*MARQUEE height=87 scrollAmount=2 width=80 scrolldely="10" align="center"><*B><*FONT color=#FFFF00 face=汉鼎繁中变>天<*IMG src="99/UploadFile/2004-6/20046734212802.gif" ;><*/FONT ><*/B><*/MARQUEE> <*MARQUEE height=87 scrollAmount=2 width=80 scrolldely="10" align="center"><*B><*FONT color=#FFFF00 face=汉鼎繁中变>空<*IMG src="99/UploadFile/2004-6/20046734212802.gif" ;><*/FONT ><*/B><*/MARQUEE><*/CENTER>
十五、图上做字效果:
<*center><*table border="5" width="365" height="320" background="图片链接地址"> <*tr> <*td> <*br> <*br><*br><*br><*br><*br><*br><*br><*br><*br><*br><*br><*br>
<*p align="center"><*font color="#FFFF00">海阔天空<*/font><*/p><*/td> <*/tr> <*/table>
十六、文字代码说明:
1.align=center:表示字体居中,可选值为居右(right)、居左(left)。
3.face=字体。常用字体为:文鼎花瓣体、宋体、黑体、楷体、仿宋、幻缘、新宋体、细明体、隶书、幼圆、华文琥珀、华文行楷、华文彩云(用做题目)、华文细黑、华文新魏、华文中宋、方正舒体、方正姚体、仿宋_GB2312.楷体_GB2312、宋体-方正超大字符集、汉鼎繁中变、华文楷体。
4.size=字体大小,这里的最大值为7,取值越大文字就越大。
5.文字标记是“<*font>”可以用“<*font>”标记的不同属性来分别设置文本中文字的大小,字体,字型,字等。<*Font>标记的格式是:<*font 属性=属性值>被设置的字<*/font>。
6.<*BR>是文字换行
7.<*P>是段控制。标记是<*p>放在文字后,使得其后文字空一行后换行显示。<*p>的属性align用来设置文字的对齐方式。属性值是center(居中对齐),left(向左对齐),right(向右对

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。