查看完整版本: 基礎語法-連結.貼圖.音樂.背景

hkyes 2007-5-21 04:31 PM

基礎語法-連結.貼圖.音樂.背景

[color=#555555][size=12px][color=red]基礎語法-貼圖連結[/color]
1.一般連結
<a href="網址">文字</a>

2.滑鼠移至連結有文字
<a href="網址" title="文字">網名</a>

3.一般貼圖
<img src="圖片網址">

4.按圖片開啟網頁
<a href="網站位址"><img src="圖片位址" alt="文字"></a>
[color=red]可當做LOGO連結用[/color]

5.插入E-maiil超連結
<a href="mailto:信箱位址 ">文字</a>

6.圖片外框
<img src="圖片位址" border="0"></a>  
解說:
border是指定圖片外框的粗細0是沒有


[color=red]基礎語法-音樂[/color]
1.RM撥放語法
<embed src="音樂網址"width=1 autostart=TRUE>

2.MIDI.MP3.ASF.WMA撥放語法(一般背景音樂語法)
<bgsound src="音樂網址">

屬性說明:
src=音樂網址
loop=音樂重撥次數,不斷撥放為true
autostart=是否要在音樂檔傳完之後,自動播放音樂。true是要,flace是不要。內定值是不要。
width=控制面版寬度
high=控制面版高度
align=控制面版與文字對齊方式,跟<img>的語法一樣
hidden=true(隱藏版面,使用此屬性無須另加版面寬高度語法)
controls=控制面版樣式
console(正常面版)/smallconsole(較小面版)
playbutton(只顯示撥放按鈕)/pausebutton(只顯示暫停按鈕)
stopbutton(只顯示停止按鈕)/volumelever(只顯示音量調整)

[color=red]基礎語法-背景[/color]

1.背景跟隨滾軸移動(一般背景)
<body background="圖片網址">

2.背景不動語法
<body background="圖片網址" bgproperties="fixed">

以下為CSS背景語法需放在<head>與</head>間
1.背景圖x軸重複
<style type="text/css">body{background:fixed url('背景網址') repeat-x left}</style>

2.背景圖y軸重複
<style type="text/css">body{background:fixed url('背景網址') repeat-y left}</style>

3.自行設定背景顏色
<style type="text/css">Body{background-color:顏色代號}</style>

4.普通貼背景
<style type="text/css">BODY{background-image:url('背景網址');background-attachment:fixed;}</style>

5.背景置左方
<style type="text/css">body{background:fixed url('背景網址')no-repeat left}</style>

6.背景置左上方
<BODY BACKGROUND="背景網址" style="background-repeat:no-repeat;background-attachment:fixed;background-position:left top">

7.背景置左中方
<BODY BACKGROUND="背景網址" style="background-repeat:no-repeat;background-attachment:fixed;background-position:left center">

8.背景置左下方
<BODY BACKGROUND="背景網址" style="background-repeat:no-repeat;background-attachment:fixed;background-position:left bottom">

9.背景置中
<style type="text/css">body{background:fixed url(背景網址) 背景色碼 no-repeat center}</style>

10.背景置中上方
<BODY BACKGROUND="背景網址" style="background-repeat:no-repeat;background-attachment:fixed;background-position:center top">

11.背景置中中方
<BODY BACKGROUND="背景網址" style="background-repeat:no-repeat;background-attachment:fixed;background-position:center center">

12.背景置中下方
<BODY BACKGROUND="背景網址" style="background-repeat:no-repeat;background-attachment:fixed;background-position:center bottom">

13.背景置右方
<style type="text/css">body{background:fixed url(背景網址) 背景色碼 no-repeat right}</style>

14.背景置右上方
<BODY BACKGROUND="背景網址" style="background-repeat:no-repeat;background-attachment:fixed;background-position:right top">

15.背景置右中方
<BODY BACKGROUND="背景網址" style="background-repeat:no-repeat;background-attachment:fixed;background-position:right center">

16.背景置右下方
<BODY BACKGROUND="背景網址" style="background-repeat:no-repeat;background-attachment:fixed;background-position:right bottom">

17.背景置上方
<style type="text/css">body{background:fixed url(背景網址) 背景色碼 no-repeat top left}</style> [/size][/color]

faz2276 2007-9-20 11:19 PM

感謝大大分享受教了下載備份回來好好研究一番!!...:6:

粉粉 2007-9-29 03:00 AM

謝謝大大分享.要好好的看看.

Micoyo 2007-10-5 04:12 PM

這個好棒喔~~
又可以多學好多嚕
多謝大大分享 :23:

plummy_vip 2007-10-16 12:53 AM

:36: 我正好找的很急呢
謝謝謝謝~~~~謝謝啦:23:

ㄚ民 2007-10-23 05:58 PM

感謝大大分享受教了下載備份回來好好研究一番!!...:23: :45: :36:

nau01 2007-11-2 08:56 PM

太感謝你的分享了

這個真的太好用了

hachnn 2007-11-16 04:09 AM

下載保留慢慢研究:50:
有機會要試試看:51:

xu3eji6 2007-11-17 09:06 AM

獲益良多,感謝大大分享!

kentk 2007-11-18 09:10 AM

雖然只是基礎,但是很好用喔!尤其用文字編輯時,謝謝了!

action-dog 2008-1-8 10:49 PM

感謝大大分享
:6: :90:

ilife 2008-1-21 12:36 PM

有看沒有懂,能舉例說明更好 :36:
感謝!

hachnn 2008-1-23 05:45 AM

哦,希望還有更多的這類教學。:90:

precisionman 2008-1-23 05:36 PM

感謝大大分享獲益良多

lksheng 2008-2-28 06:45 PM

收獲很多 下載慢慢研究

1018911 2008-3-9 08:00 AM

真是一篇不錯的文章
來去好好學習一下

trout 2008-5-10 07:32 AM

可以多學網頁技術 多謝分享!

trout 2008-5-10 07:33 AM

可以多學網頁技術 多謝分享!
頁: [1]
查看完整版本: 基礎語法-連結.貼圖.音樂.背景
提供高質素的醫護用品、租/售優質輪椅,物理治療設備,拐杖、老人椅、便椅、 血壓計等等