小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

教你認識基本博客代碼(初學者必藏)

 桃源釣翁 2012-07-17

教你認識基本博客代碼(初學者必藏)  

 

 

               


  認識基本博客代碼

代 碼

釋 義

一、文字語法

align=center

文字居中

align=left

文字居左

align=right

文字居右

align=up

文字居上

align=down

文字居下

<font face=宋體></font>

指定字體

<font color=顏色代碼></font>

設(shè)定字體顏色

<font size=數(shù)值></font>

設(shè)定字體大?。〝?shù)值1至7,7最大)

<b>相關(guān)文字</b>

設(shè)定粗體字

<strong>相關(guān)文字</strong>

設(shè)定粗體字(強調(diào))

<h1>相關(guān)文字</h1>

設(shè)定標題字大小(h1最大,h6最?。?/FONT>

<i>相關(guān)文字</i>

設(shè)定斜體字

<em>相關(guān)文字</em>

設(shè)定斜體字(強調(diào))

 <dfn>相關(guān)文字</dfn>

設(shè)定斜體字(表示定義)

<big>相關(guān)文字</big>

字體加大

<font size=100p%>相關(guān)文字</font>

字體最大

<font style ="font-size:100px">相關(guān)文字</font>

字體無限增大

<marquee>相關(guān)文字</marquee>

移動字體

<kbd>相關(guān)文字</kbd>

鍵盤相關(guān)文字

<tt>相關(guān)文字</tt>

打字體

<sup>相關(guān)文字</sup>

上標字

<sub>相關(guān)文字</sub>

下標字

<u>相關(guān)文字</u>

底線

<ins>相關(guān)文字</ins>

底線(表示插入相關(guān)文字)

<strike>相關(guān)文字</strike>

橫線

<s>相關(guān)文字</s>

刪除線

<del>相關(guān)文字</del>

刪除線(表示刪除)

<xmp>相關(guān)文字</xmp>

固定寬度字體

<plaintext>相關(guān)文字</plaintext>

固定寬度字體(不執(zhí)行標記符號)

<listing>相關(guān)文字</listing>

固定寬度小字體

<pre>相關(guān)文字</pre>

原始文字樣式,預(yù)格式化文本

二、區(qū)段標記

<br> 

換行

  

空格

<p>相關(guān)內(nèi)容</p> 

段落

<DIV相關(guān)內(nèi)容</DIV> 

段落

<center>相關(guān)內(nèi)容</center>  居中

居中

 <left>相關(guān)內(nèi)容</left>  居左

居左

<right>相關(guān)內(nèi)容</right> 

 居右

<P align=center>相關(guān)內(nèi)容</p> 

排版段落的標簽

<DIV align=center>相關(guān)內(nèi)容</DIV> 

排版大塊段落的標簽

align=屬性值

對齊方式,屬性值為left(左對齊,默認),center(居中),right(右對齊)

width=數(shù)值 

表示寬度,數(shù)值為像素和百分比兩種

height=數(shù)值

表示高度,取值方法同width

<nobr>相關(guān)文字</nobr> 

不換行

<hr> 

水平線

<hr size="數(shù)值"> 

設(shè)定水平線厚度

<hr width="數(shù)值"> 

設(shè)定水平線寬度,
數(shù)值為像素和百分比兩種

<hr color="顏色代碼"> 

設(shè)定水平線顏色

<hr noshade> 

設(shè)定沒有陰影的水平線

<BLOCKQUOTE>要縮排的文字</BLOCKQUOTE> 

從兩邊縮進文本

三、 地址鏈接

<base href=網(wǎng)頁地址>  

預(yù)設(shè)好鏈接路徑

<a href=網(wǎng)頁地址></a> 

外部鏈接

<a href=網(wǎng)頁地址 target="_blank"></a> 

另開新窗口鏈接

<a href=網(wǎng)頁地址 target="_top"></a> 

全窗口鏈接

<a href=網(wǎng)頁地址 target="頁框名"></a> 

在指定頁框鏈接

<a href=網(wǎng)頁地址 style="text-decoration:none">相關(guān)文字</a> 

消除鏈接文字的下劃線

<a href=網(wǎng)頁地址><IMG src=圖片地址 border=0></a> 

圖片鏈接

<a href=網(wǎng)頁地址>相關(guān)文字</a> 

文字鏈接

<a href=網(wǎng)頁地址><font face=宋體 color=#660000 size=6>相關(guān)文字</font></a> 

彩色文字鏈接

四、貼圖/音樂

<img src=圖片地址>

簡單貼圖

<img src=圖片地址 width=數(shù)值 height=數(shù)值> 

設(shè)定圖片寬度和高度

<img src=圖片地址 alt="提示相關(guān)文字"> 

設(shè)定圖片提示相關(guān)文字

<img src=圖片地址 border=數(shù)值> 

設(shè)定圖片邊框(邊框線寬度)

<img src=圖片地址 hspace=數(shù)值 vspace=數(shù)值>  

圖形四周留白

<body background=圖片地址>

貼背景圖片

<body bgcolor=顏色代碼>

設(shè)定背景顏色

<bgsound src=音樂地址 autostart=true loop=true> 

背景音樂(隱藏)

<embed src=音樂地址 autostart=true loop=true></embed> 

背景音樂(顯示播放器)

<embed src=flash地址 width=數(shù)值 height=數(shù)值></embed> 

貼Flash音畫

<img dynsrc=影視地址 width=數(shù)值 height=數(shù)值 start=mouseover> 

貼影視

<iframe src=網(wǎng)頁地址 width=數(shù)值 height=數(shù)值></iframe> 

貼網(wǎng)頁

<body background="圖片地址" body bgproperties=fixed>  

固定背景不隨滾動條滾動

五、文字移動

<marquee>相關(guān)文字</marquee> 

簡單重復移動

<marquee behavior=slide>相關(guān)文字</marquee>

向左一次移動

<marquee behavior=scroll>相關(guān)文字</marquee>  

預(yù)設(shè)卷動

<marquee behavior=alternate>相關(guān)文字</marquee> 

左右來回移動

<marquee direction=up>相關(guān)文字</marquee> 

向上重復移動

<marquee direction=down>相關(guān)文字</marquee> 

向下重復移動

<marquee direction=left>相關(guān)文字</marquee> 

 向左重復移動

<marquee direction=right>相關(guān)文字</marquee> 

向右重復移動

<marquee loop=數(shù)值>相關(guān)文字</marquee> 

設(shè)定移動次數(shù)

<marquee width=數(shù)值>相關(guān)文字</marquee>

設(shè)定文字移動的寬度范圍

<marquee height=數(shù)值>相關(guān)文字</marquee> 

設(shè)定移動高度

<marquee bgcolor=顏色代碼>相關(guān)文字</marquee>  設(shè)定移動背景顏色

設(shè)定移動背景顏色

<marquee scrollamount=數(shù)值>相關(guān)文字</marquee> 

設(shè)定文字移動的速度

<marquee scrolldelay=數(shù)值>相關(guān)文字</marquee>  設(shè)定移動時間

設(shè)定移動時間

<marquee scrolldelay=數(shù)值 scrollamount=數(shù)值>相關(guān)文字</marquee> 

設(shè)定移動停頓

六、表格語法

<TABLE></TABLE> 

定義表格

<TR></TR> 

定義表格中的“行”

<TD></TD> 

定義表格中的“列”

 border=數(shù)值 

表格外框線寬度

borderColor=顏色代碼 

表格邊框線顏色

bordercolorlight=顏色代碼 

表格亮邊框顏色

bordercolordark=顏色代碼 

表格暗邊框顏色

bgcolor=顏色代碼 

表格的背景顏色

background=圖片地址 

表格的背景圖案

cellspacing=數(shù)值 

表格中各單元格框線的間距

cellpadding=數(shù)值 

表格內(nèi)容與表格邊框之間的距離

colspan=數(shù)值 

合并表格的列數(shù)

rowspan=數(shù)值 

合并表格的行數(shù)

<caption></caption> 

建立表格的標題,通過位置屬性定義標題的位置

<table cols=數(shù)值>內(nèi)容</table> 

指定表格的欄數(shù)

<table frame=數(shù)值>內(nèi)容</table> 

設(shè)定表格外框線的顯示方式

<frameset cols="20%,*"> 

分割左右兩個框架

<frameset cols="20%,*"> 

左右分割,將左邊框架分割大小為20%,右邊框架的大小會自動調(diào)整

<frameset cols="20%,*,20%"> 

分割左中右三個框架

 <frameset rows="20%,*"> 

分割上下兩個框架

<frameset rows="20%,*">  上下分割,將上面框架分割大小為20%,下面框架的大小會自動調(diào)整

上下分割,將上面框架分割大小為20%,下面框架的大小會自動調(diào)整

<frameset rows="20%,*,20%"> 

分割上中下三個框架

七、HTML基本語法

<html>網(wǎng)頁內(nèi)容</html>

文件格式(文件的開頭與結(jié)尾)

<head>網(wǎng)頁主題</head> 

文頭區(qū)段(放在文件的開頭)

<title>主題信息</title>   

網(wǎng)頁主題

<body>網(wǎng)頁正文內(nèi)容</body> 

內(nèi)文區(qū)段(放此文件的內(nèi)容)

    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
    轉(zhuǎn)藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多