html常用的語法命令
一、添加背景的語法命令
(一)單層背景的語法命令
<CENTER><TABLE style="WIDTH: 571px; HEIGHT: 128px" cellSpacing=10 cellPadding=0 width_=571 align=center background= 背景地址 border=0><TBODY><TR><TD width_=721><DIV align=center> </DIV></TD></TR></TBODY></TABLE><CENTER></CENTER></CENTER>
(二)多層背景的語法命令
<CENTER><TABLE style="WIDTH: 571px; HEIGHT: 128px" cellSpacing=10 cellPadding=0 width_=571 align=center background= 背景地址 border=0><TBODY><TR><TD width_=721><DIV align=center><DIV align=center><CENTER><TABLE style="WIDTH: 571px; HEIGHT: 128px" cellSpacing=10 cellPadding=0 width_=571 align=center background=背景地址 border=0><TBODY><TR><TD width_=721><DIV align=center><CENTER><TABLE style="WIDTH: 571px; HEIGHT: 128px" cellSpacing=10 cellPadding=0 width_=571 align=center background=背景地址 border=0><TBODY><TR><TD width_=721><DIV align=center><DIV align=center><CENTER><TABLE style="WIDTH: 571px; HEIGHT: 128px" cellSpacing=10 cellPadding=0 width_=571 align=center background=背景地址 border=0><TBODY><TR><TD width_=721><DIV align=center> </DIV></TD></TR></TBODY></TABLE>
這是四層背景的命令,要想加更多層的背景可將第二、三的命令再複製一遍,然後將其放到第四層背景命令的上方即可。
(三)不用背景地址的背景命令
<CENTER><TABLE style="WIDTH: 407px; HEIGHT: 270px" borderColor=#bcbf8f cellSpacing=2 cellPadding=3 bgColor=#e6e6fa border=28><TBODY><TR><TD><P align=center> </P></TR></TBODY></TABLE></CENTER>
注;「borderColor」為框的顏色,「bgColor」為框子裡面的顏色
二、背景添加透明FLASH的語法命令
<P align=center><EMBED style="LEFT: 50px; WIDTH: 850px; POSITION: absolute; TOP: 100px; HEIGHT: 500px" align=right src= FLASH地址 width_=200 height=1500 type=application/octet-stream wmode="transparent" quality="high" ;;></P>
三、圖片橫向擺動的語法命令
四、網站引導語法命令
<P align=center><A href="http://xd.2000y.net/314755/index.asp"><FONT color=#a00000 size=6>點擊進入一方陽光網站</FONT><FONT color=#003366> </FONT></P>
五、禁止右鍵命令
六、圖片模糊處理命令
<P align=center><IMG style="FILTER: Alpha(opacity=100,style=2); WIDTH: 276px; HEIGHT: 284px" height=188 src="圖片地址" width_=454></P>
七、可以向上移動的圖片或文字命令
<P align=left><MARQUEE onmouseover=this.stop() style="WIDTH: 375px; HEIGHT: 143px" onmouseout=this.start() scrollAmount=1 direction=up height=143><FONT color=#ff3366><FONT face=華文行楷 size=6 40pt><B><CENTER><FONT face=楷體_GB2312 color=#b0c4de size=4><IMG style="FILTER: Alpha(opacity=100,style=2); WIDTH: 192px; HEIGHT: 118px" height=188 src="圖片地址" width_=454></FONT></CENTER><FONT face=楷體_GB2312 color=#b0c4de size=4><CENTER><BR> </CENTER></FONT></FONT></B></FONT></MARQUEE></P>
八、上圖片向右,下圖片向左移動的命令
<P align=center><MARQUEE style="WIDTH: 240px; HEIGHT: 43px" width_=240 height=43><STRONG><P align=center><SPAN lang=EN-US style="FONT-SIZE: 18pt; COLOR: black; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt; mso-bidi-font-family: """"""""Times New Roman""""""""; mso-ascii-font-family: 宋體"><STRONG><FONT color=#0000ff><SPAN lang=EN-US style="FONT-SIZE: 18pt; COLOR: black; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt; mso-bidi-font-family: """"""""Times New Roman""""""""; mso-ascii-font-family: 宋體"><STRONG><FONT color=#0000ff><SPAN lang=EN-US style="FONT-SIZE: 18pt; COLOR: black; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt; mso-bidi-font-family: """"""""Times New Roman""""""""; mso-ascii-font-family: 宋體"><STRONG><FONT color=#0000ff><IMG style="FILTER: Alpha(opacity=100,style=2); WIDTH: 218px; HEIGHT: 224px" height=188 src="圖片地址" width_=454></FONT></STRONG></SPAN></FONT></STRONG></SPAN></FONT></STRONG></SPAN></P></STRONG></FONT></MARQUEE></P><FONT face=華文彩雲 color=#2f4f4f size=6><P align=center><MARQUEE direction=right width_=240 height=50><STRONG><SPAN lang=EN-US style="FONT-SIZE: 18pt; COLOR: black; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt; mso-bidi-font-family: """"""""Times New Roman""""""""; mso-ascii-font-family: 宋體"><STRONG><FONT color=#0000ff><CENTER><SPAN lang=EN-US style="FONT-SIZE: 18pt; COLOR: black; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt; mso-bidi-font-family: """"""""Times New Roman""""""""; mso-ascii-font-family: 宋體"><STRONG><FONT color=#0000ff><SPAN lang=EN-US style="FONT-SIZE: 18pt; COLOR: black; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt; mso-bidi-font-family: """"""""Times New Roman""""""""; mso-ascii-font-family: 宋體"><STRONG><FONT color=#0000ff><IMG style="FILTER: Alpha(opacity=100,style=2); WIDTH: 222px; HEIGHT: 217px" height=188 src="圖片地址" width_=454></FONT></STRONG></SPAN></FONT></STRONG></SPAN></CENTER></FONT></STRONG></SPAN></STRONG></MARQUEE></P>
九、圖片從右向左移動的命令
<P align=left><MARQUEE style="WIDTH: 443px; HEIGHT: 20px" scrollDelay=120 width_=443 height=20><DIV align=left><STRONG> <SPAN lang=EN-US style="FONT-SIZE: 18pt; COLOR: black; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt; mso-bidi-font-family: """"""""Times New Roman""""""""; mso-ascii-font-family: 宋體"><STRONG><FONT color=#0000ff><SPAN lang=EN-US style="FONT-SIZE: 18pt; COLOR: black; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt; mso-bidi-font-family: """"""""Times New Roman""""""""; mso-ascii-font-family: 宋體"><STRONG><FONT color=#0000ff><IMG style="FILTER: Alpha(opacity=100,style=2); WIDTH: 244px; HEIGHT: 176px" height=188 src="圖片地址" width_=454></FONT></STRONG></SPAN></FONT></STRONG></SPAN></STRONG></DIV></FONT></MARQUEE></P>
十、圖片分別向左右移動的命令
<DIV align=center><P align=center><SPAN lang=EN-US style="FONT-SIZE: 18pt; COLOR: black; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt; mso-bidi-font-family: """"""""Times New Roman""""""""; mso-ascii-font-family: 宋體"><FONT face=楷體_GB2312 color=#add8e6 size=4><SPAN lang=EN-US style="FONT-SIZE: 18pt; COLOR: black; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt; mso-bidi-font-family: """"""""Times New Roman""""""""; mso-ascii-font-family: 宋體"><FONT color=#0000ff></FONT></SPAN></FONT></SPAN> <FONT face=華文彩雲 color=#2f4f4f size=6><MARQUEE style="WIDTH: 240px; HEIGHT: 43px" width_=240 height=43><STRONG><P align=center><SPAN lang=EN-US style="FONT-SIZE: 18pt; COLOR: black; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt; mso-bidi-font-family: """"""""Times New Roman""""""""; mso-ascii-font-family: 宋體"><STRONG><FONT color=#0000ff><SPAN lang=EN-US style="FONT-SIZE: 18pt; COLOR: black; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt; mso-bidi-font-family: """"""""Times New Roman""""""""; mso-ascii-font-family: 宋體"><STRONG><FONT color=#0000ff><SPAN lang=EN-US style="FONT-SIZE: 18pt; COLOR: black; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt; mso-bidi-font-family: """"""""Times New Roman""""""""; mso-ascii-font-family: 宋體"><STRONG><FONT color=#0000ff><IMG style="FILTER: Alpha(opacity=100,style=2); WIDTH: 218px; HEIGHT: 224px" height=188 src="圖片地址" width_=454></FONT></STRONG></SPAN></FONT></STRONG></SPAN></FONT></STRONG></SPAN></P></STRONG></FONT></MARQUEE><FONT face=華文彩雲 color=#2f4f4f size=6><MARQUEE direction=right width_=240 height=50><STRONG><SPAN lang=EN-US style="FONT-SIZE: 18pt; COLOR: black; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt; mso-bidi-font-family: """"""""Times New Roman""""""""; mso-ascii-font-family: 宋體"><STRONG><FONT color=#0000ff><CENTER><SPAN lang=EN-US style="FONT-SIZE: 18pt; COLOR: black; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt; mso-bidi-font-family: """"""""Times New Roman""""""""; mso-ascii-font-family: 宋體"><STRONG><FONT color=#0000ff><SPAN lang=EN-US style="FONT-SIZE: 18pt; COLOR: black; FONT-FAMILY: Arial; mso-bidi-font-size: 10.0pt; mso-bidi-font-family: """"""""Times New Roman""""""""; mso-ascii-font-family: 宋體"><STRONG><FONT color=#0000ff><IMG style="FILTER: Alpha(opacity=100,style=2); WIDTH: 218px; HEIGHT: 217px" height=188 src="圖片地址" width_=454></FONT></STRONG></SPAN></FONT></STRONG></SPAN></CENTER></FONT></STRONG></SPAN></STRONG></MARQUEE></FONT></FONT>
改變不規則背景的命令(將其放在最上面的背景地址之前就可以將背景改變為規則的)
<DIV align=center><P align=center><TABLE style="" cellSpacing=0 cellPadding=0 align=center border=0><TBODY><TR><TD style="WORD-WRAP: break-word"><P align=center><TABLE cellSpacing=25 align=center
背景加框的命令
<CENTER><TABLE style="WIDTH: 571px; HEIGHT: 128px" cellSpacing=10 cellPadding=0 width_=571 align=center background=背景地址 border=0><TBODY><TR><TD width_=721><DIV align=center><TABLE cellSpacing=1 borderColorDark=#aba1a9 cellPadding=0 width_="75%" borderColorLight=#f9f7f8 border=1><TBODY><TR><TD align=middle ><P><FONT color=#c1e0ff size=2><P align=center><A href=http://www.qt211.com/> </P><P></P></A></FONT></TD></TR></TBODY></DIV></TR></TBODY></TABLE></CENTER>
推薦閱讀:
※英語語法順口溜,請為你的孩子收藏
※ASP.NET Web 頁面語法概覽
※Android.mk文件語法規範及使用模板
TAG:語法 |