留下一些比較有意思的代碼好啦:

首標(biāo)簽<marquee>和尾標(biāo)簽</marquee>之間的內(nèi)容就是滾動(dòng)內(nèi)容。<marquee>標(biāo)簽的屬性主要有behavior、bgcolor、direction、width、height、hspace、vspace、loop" />

国产成人精品无码青草_亚洲国产美女精品久久久久∴_欧美人与鲁交大毛片免费_国产果冻豆传媒麻婆精东

15158846557 在線咨詢 在線咨詢
15158846557 在線咨詢
所在位置: 首頁(yè) > 營(yíng)銷資訊 > 網(wǎng)站運(yùn)營(yíng) > DW網(wǎng)頁(yè)設(shè)計(jì)期末大作業(yè)

DW網(wǎng)頁(yè)設(shè)計(jì)期末大作業(yè)

時(shí)間:2023-10-03 06:36:02 | 來(lái)源:網(wǎng)站運(yùn)營(yíng)

時(shí)間:2023-10-03 06:36:02 來(lái)源:網(wǎng)站運(yùn)營(yíng)

DW網(wǎng)頁(yè)設(shè)計(jì)期末大作業(yè):

留下一些比較有意思的代碼好啦:

首標(biāo)簽<marquee>和尾標(biāo)簽</marquee>之間的內(nèi)容就是滾動(dòng)內(nèi)容。<marquee>標(biāo)簽的屬性主要有behavior、bgcolor、direction、width、height、hspace、vspace、loop、scrollamount、scrolldelay等,它們都是可選的。
behavior屬性

behavior屬性的參數(shù)值為alternate、scroll、slide中的一個(gè),分別表示文字來(lái)回滾動(dòng)、單方向循環(huán)滾動(dòng)、只滾動(dòng)一次,需要注意的是:如果在<marquee>標(biāo)簽中同時(shí)出現(xiàn)了direction和behavior屬性,那么scroll和slide的滾動(dòng)方向?qū)⒁勒誨irection屬性中參數(shù)的設(shè)置。

<marquee behavior="alternate">我來(lái)回滾動(dòng)</marquee>
<marquee behavior="scroll">我單方向循環(huán)滾動(dòng)</marquee><marquee behavior="scroll" direction="up" height="30">我改單方向向上循環(huán)滾動(dòng)</marquee> <marquee behavior="slide">我只滾動(dòng)一次</marquee>
<marquee behavior="slide" direction="up">我改向上只滾動(dòng)一次了</marquee>
bgcolor屬性文字滾動(dòng)范圍的背景顏色,參數(shù)值是16進(jìn)制(形式:#aabbcc或#aa5566等)或預(yù)定義的顏色名字(如red、yellow、blue等)。如下所示:<marquee behavior=="slide" direction="left" bgcolor="red">我的背景色是紅色的</marquee>


direction屬性

文字滾動(dòng)的方向,屬性的參數(shù)值有down、left、right、up共四個(gè)單一可選值,分別代表滾動(dòng)方向向下、向左、向右、向上。如下所示:

<marquee direction="right">我向右滾動(dòng)</marquee>

<marquee direction="right">我向下滾動(dòng)</marquee>

width和height屬性

width和height屬性的作用決定滾動(dòng)文字在頁(yè)面中的矩形范圍大小。width屬性用以規(guī)定矩形的寬度,height屬性規(guī)定矩形的高度。這兩個(gè)屬性的參數(shù)值可以是數(shù)字或者百分?jǐn)?shù),數(shù)字表示矩形所占的(寬或高)像素點(diǎn)數(shù),百分?jǐn)?shù)表示矩形所占瀏覽器窗口的(寬或高)百分比。如下所示:

<marquee width="300" height="30" bgcolor="red">我寬300像素,高30像素。</marquee>
hspace和vspace屬性

這兩個(gè)屬性決定滾動(dòng)矩形區(qū)域距周圍的空白區(qū)域.

<marquee width="300" height="30" vspace="10" hspace="10" bgcolor="red">我矩形邊緣水平和垂直距周圍各10像素。</marquee>


<marquee width="300" height="30" vspace="50" hspace="50" bgcolor="red">我矩形邊緣水平和垂直距周圍各50像素。</marquee>
loop屬性

loop屬性決定滾動(dòng)文字的滾動(dòng)次數(shù),缺省是無(wú)限循環(huán)。參數(shù)值可以是任意的正整數(shù),如果設(shè)置參數(shù)值為-1或infinite時(shí)將無(wú)限循環(huán)。如下所示:

<marquee loop="2">我滾動(dòng)2次。</marquee>
<marquee loop="infinite">我無(wú)限循環(huán)滾動(dòng)。</marquee>

<marquee loop="-1">我無(wú)限循環(huán)滾動(dòng)。</marquee>

scrollamount和scrolldelay屬性

這兩個(gè)屬性決定文字滾動(dòng)的速度(scrollamount)和延時(shí)(scrolldelay),參數(shù)值都是正整數(shù)。如下所示:

<marquee scrollamount="100">我速度很快.</marquee>

<marquee scrollamount="50">我慢了些。</marquee>
<marquee scrolldelay="30">我小步前進(jìn)。</marquee>
<marquee scrolldelay="1000" scrollamount="100">我大步前進(jìn)。</marquee>
最后說(shuō)一下align屬性,這個(gè)屬性決定滾動(dòng)文字位于距形內(nèi)邊框的上下左右位置。您也可以將<marquee>和</marquee>之間的內(nèi)容替換為圖像或其它對(duì)象等

<!> 跑馬燈 <marquee>...

</marquee>普通卷動(dòng) <marquee behavior=slide>...

</marquee>滑動(dòng) <marquee behavior=scroll>...




如果要交流設(shè)計(jì)的話,或者解疑的話可以私聊~

關(guān)鍵詞:作業(yè),設(shè)計(jì)

74
73
25
news

版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。

為了最佳展示效果,本站不支持IE9及以下版本的瀏覽器,建議您使用谷歌Chrome瀏覽器。 點(diǎn)擊下載Chrome瀏覽器
關(guān)閉