婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > html marquee標(biāo)簽使用示例介紹

html marquee標(biāo)簽使用示例介紹

熱門標(biāo)簽:騰訊植物園地圖標(biāo)注 巫山縣地圖標(biāo)注app 經(jīng)綸電銷機(jī)器人 個(gè)貸電銷機(jī)器人 電話機(jī)器人宣傳片 外呼智能系統(tǒng)報(bào)價(jià) 華為收費(fèi)站地圖標(biāo)注 鄒城智能外呼系統(tǒng) 浦東新區(qū)百度地圖標(biāo)注圖片
該標(biāo)簽不是HTML3.2的一部分,并且只支持MSIE3以后內(nèi)核,所以如果你使用非IE內(nèi)核瀏覽器(如:Netscape)可能無法看到下面一些很有意思的效果
該標(biāo)簽是個(gè)容器標(biāo)簽

Marquee 公告滾動代碼

最簡單的網(wǎng)站公告滾動代碼 ,基于Marquee走馬燈,豎直向上滾動,Table表格形式,不懂CSS也能用。


提示:您可以先修改部分代碼再運(yùn)行


語法:

<marquee></marquee>

以下是一個(gè)最簡單的例子:

代碼如下:

復(fù)制代碼
代碼如下:

<marquee><font size=+3 color=red>Hello, World</font></marquee>

下面這兩個(gè)事件經(jīng)常用到:

onMouseOut="this.start()" :用來設(shè)置鼠標(biāo)移出該區(qū)域時(shí)繼續(xù)滾動
onMouseOver="this.stop()":用來設(shè)置鼠標(biāo)移入該區(qū)域時(shí)停止?jié)L動

代碼如下:

復(fù)制代碼
代碼如下:

<marquee onMouseOut="this.start()" onMouseOver="this.stop()">onMouseOut="this.start()" :用來設(shè)置鼠標(biāo)移出該區(qū)域時(shí)繼續(xù)滾動 onMouseOver="this.stop()":用來設(shè)置鼠標(biāo)移入該區(qū)域時(shí)停止?jié)L動</marquee>

這是一個(gè)完整的例子:

代碼如下:

復(fù)制代碼
代碼如下:

<marquee id="affiche" align="left" behavior="scroll" bgcolor="#FF0000" direction="up" height="300" width="200" hspace="50" vspace="20" loop="-1" scrollamount="10" scrolldelay="100" onMouseOut="this.start()" onMouseOver="this.stop()">
這是一個(gè)完整的例子
</marquee>

該標(biāo)簽支持的屬性多達(dá)11個(gè):

align

設(shè)定<marquee>標(biāo)簽內(nèi)容的對齊方式
absbottom:絕對底部對齊(與g、p等字母的最下端對齊)
absmiddle:絕對中央對齊
baseline:底線對齊
bottom:底部對齊(默認(rèn))
left:左對齊
middle:中間對齊
right:右對齊
texttop:頂線對齊
top:頂部對齊

代碼如下:

復(fù)制代碼
代碼如下:

<marquee align="absbottom">align="absbottom":絕對底部對齊(與g、p等字母的最下端對齊)。 </marquee>
<marquee align="absmiddle">align="absmiddle": 絕對中央對齊。 </marquee>
<marquee align="baseline">align="baseline": 底線對齊。 </marquee>
<marquee align="bottom">align="bottom": 底部對齊(默認(rèn))。 </marquee>
<marquee align="left">align="left": 左對齊。 </marquee>
<marquee align="middle">align="middle": 中間對齊。 </marquee>
<marquee align="right">align="right": 右對齊。 </marquee>
<marquee align="texttop">align="texttop": 頂線對齊。 </marquee>
<marquee align="top">align="top": 頂部對齊。 </marquee>

behavior

設(shè)定滾動的方式:

alternate: 表示在兩端之間來回滾動。
scroll: 表示由一端滾動到另一端,會重復(fù)。
slide: 表示由一端滾動到另一端,不會重復(fù)。

代碼如下:

復(fù)制代碼
代碼如下:

<marquee behavior="alternate">alternate:表示在兩端之間來回滾動。 </marquee>
<marquee behavior="scroll">scroll:表示由一端滾動到另一端,會重復(fù)。</marquee>
<marquee behavior="slide">slide: 表示由一端滾動到另一端,不會重復(fù)。</marquee>

bgcolor

設(shè)定活動字幕的背景顏色,背景顏色可用RGB、16進(jìn)制值的格式或顏色名稱來設(shè)定。

代碼如下:

復(fù)制代碼
代碼如下:

<marquee bgcolor="#006699">設(shè)定活動字幕的背景顏色 bgcolor="#006699"</marquee>
<marquee bgcolor="RGB(10%,50%,100%,)">設(shè)定活動字幕的背景顏色 bgcolor="rgb(10%,50%,100%,)"</marquee>
<marquee bgcolor="red">設(shè)定活動字幕的背景顏色 bgcolor="red"</marquee>

direction

設(shè)定活動字幕的滾動方向

代碼如下:

復(fù)制代碼
代碼如下:

<marquee direction="down">設(shè)定活動字幕的滾動方向direction="down":向下</marquee>
<marquee direction="left">設(shè)定活動字幕的滾動方向direction="left":向左</marquee>
<marquee direction="right">設(shè)定活動字幕的滾動方向direction="right":向右</marquee>
<marquee direction="up">設(shè)定活動字幕的滾動方向direction="up":向上</marquee>

height

設(shè)定活動字幕的高度

代碼如下:

復(fù)制代碼
代碼如下:

<marquee height="500" direction="down" bgcolor="#CCCCCC">設(shè)定活動字幕的高度height="500"</marquee>

width

設(shè)定活動字幕的寬度

代碼如下:

復(fù)制代碼
代碼如下:

<marquee width="500" bgcolor="#CCCCCC">設(shè)定活動字幕的寬度width="500"</marquee>

hspace

設(shè)定活動字幕里所在的位置距離父容器水平邊框的距離

This controls the horizontal(水平)space around the display box.

代碼如下:

復(fù)制代碼
代碼如下:

<table width="500" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><marquee hspace="100" bgcolor="#CCCCCC">hspace="100"</marquee></td>
</tr>
</table>

vspace

設(shè)定活動字幕里所在的位置距離父容器垂直邊框的距離

This controls the vertical(垂直) space around the display box.

代碼如下:

復(fù)制代碼
代碼如下:

<marquee vspace="100" bgcolor="#CCCCCC">hspace="100"</marquee>

loop

設(shè)定滾動的次數(shù),當(dāng)loop=-1表示一直滾動下去,默認(rèn)為-1
代碼如下:

復(fù)制代碼
代碼如下:

<marquee loop="-1" bgcolor="#CCCCCC">我會不停地走。</marquee>
<p>&nbsp;</p>
<marquee loop="2" bgcolor="#CCCCCC">我只走兩次哦</marquee>

scrollamount

設(shè)定活動字幕的滾動速度,單位pixels

代碼如下:

復(fù)制代碼
代碼如下:

<marquee scrollamount="10" >scrollamount="10" </marquee>
<marquee scrollamount="20" >scrollamount="20" </marquee>
<marquee scrollamount="30" >scrollamount="30" </marquee>

scrolldelay

設(shè)定活動字幕滾動兩次之間的延遲時(shí)間,單位millisecond(毫秒)
值大了會有一步一停頓的效果

代碼如下:

復(fù)制代碼
代碼如下:

<marquee scrolldelay="10" >scrolldelay="10" </marquee>
<marquee scrolldelay="100" > scrolldelay="100"</marquee>
<marquee scrolldelay="1000">scrolldelay="1000" </marquee>

標(biāo)簽:日喀則 滁州 廣西 楊凌 唐山 三沙 那曲 南平

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《html marquee標(biāo)簽使用示例介紹》,本文關(guān)鍵詞  html,marquee,標(biāo)簽,使用,示例,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《html marquee標(biāo)簽使用示例介紹》相關(guān)的同類信息!
  • 本頁收集關(guān)于html marquee標(biāo)簽使用示例介紹的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 金湖县| 当阳市| 武宣县| 依安县| 长沙市| 崇文区| 镇安县| 济南市| 共和县| 潞城市| 定兴县| 玛纳斯县| 光泽县| 龙南县| 永康市| 宁远县| 永川市| 澄迈县| 招远市| 萨嘎县| 垣曲县| 嘉兴市| 沅陵县| 石阡县| 南宫市| 浦江县| 凤台县| 临颍县| 永康市| 余干县| 封丘县| 丹巴县| 九江市| 万安县| 疏附县| 余江县| 秀山| 兴城市| 昌都县| 利辛县| 旺苍县|