Loading...
2009-06-03

個人常用的 Html 語法

個人常用的 html語法整理(這樣可以少打一些字,呵!)


一、插入頁框 iframe

<iframe src="" height="600px" width="98%" frameborder="0" scrolling="auto" align="center">如果你看到這段文字,表示你的瀏覽器不支授IFRAME</iframe>

二、插入超連結

<a href="" target="_blank"></a>

三、插入圖片

<img src="">

四、讓表格聽話,不會空下很多空行

<style type="text/css">.nobrtable br {display:none}<br /></style><div class="nobrtable">
表格語法
</div>


五、html線上語法編輯器
網站百寶箱線上編輯器
FCKediter

六、插入flash

<embed pluginspage="http://www.macromedia.com/go/getflashplayer" src="FLASH檔案的網址" width="寬度" height="高度" type="application/x-shockwave-flash" quality="high" wmode="transparent" menu="false"></embed>


七、DIV語法

<DIV style=”font:XX XX XX XX XX XX”>區段文字樣式的綜合設定

<DIV style=”font-family:XX”>設定區段字型
<DIV style=”font-size:XX”>設定區段文字的大小
<DIV style=”line-height:XX”>設定區段行高
<DIV style=”font-weight:XX”>設定區段文字的粗細
<DIV style=”font-style:XX”>設定區段文字的樣式
<DIV style=”font-variant:XX”>設定段落英文字的大小寫
<DIV style=”text-indent:XX”>設定區段的縮排
<DIV style=”letter-spacing:XX”>定區段英文單字間的間距
<DIV style=”width:XX”>控制區段文字的顯示寬度
<DIV style=”height:XX”>控制區段文字的高度
<DIV style=”overflow:XX”>設定區段的捲軸
<DIV style=”color:XX”>設定區段文字的色彩
<DIV style=”background:XX XX XX XX XX XX”>區段背景的綜合設定
<DIV style=”background-color:XX”>設定區段內的背景色彩
<DIV style=”background-image:XX”>使用圖片作為區段的背景
<DIV style=”background-repeat:XX”>設定區段中的背景圖片排列方式
<DIV style=”background-attachment:XX”>設定區段背景圖片的浮水印效果
<DIV style=”background-position:XX”>設定區段內背景圖片的位置
<DIV style=”margin:XX XX XX XX”>設定區段四邊與視窗的距離
<DIV style=”padding:XX XX XX XX”>設定區段文字與視邊框的距離
<DIV style=”border:XX XX XX”>設定區段邊框的樣式
<DIV style=”position:XX”>設定區段的位置
<DIV style=”visibility:XX”>設定區段內的顯示與隱藏
<DIV style=”position:absolute;filter:Alpha(XX)”>設定區段的絕對位置及透明度

1 意見:

 
TOP