標籤:
主要參數:
behavior
- 移動方式
- scroll 迴圈移動
- slide 只移動一個回合
- alternate 來回移動
direction
scrollamount
scrolldelay
- 延時(走走停停)。毫秒為單位,預設85。如果設定小於60,會預設使用60,除非truespeed指定。
truespeed
- 預設情況下,scrolldelay值低於60將被忽略。如果truespeed存在,這些值是不會忽略。
loop
height widthbgcolor : code :
<body style="text-align: center"><div style="margin: 0 auto; background-color: beige; width: 300px; height: 300px; text-align: center; background-color: beige" > 我是不動的<!-- marquee 設定滾動 direction 滾動方向; scrollamount 移動速度; behavior移動方式 scroll(迴圈移動)、slide(只移動一個回合)、alternate(來回移動) --> <marquee>我是預設的滾動方向!</marquee> <marquee direction="up">我是向上的滾動!</marquee> <marquee style="border:solid" direction="down" scrollamount="3" height="200px" width="200px" behavior="alternate" bgcolor="azure" scrolldelay="10"> <marquee behavior="alternate"> <p style="background-color: aqua">我是嵌套的滾動</p> </marquee> </marquee></div></body>
HTML 滾動標籤<marquee>