HTML 滾動標籤<marquee>

來源:互聯網
上載者:User

標籤:

主要參數:

behavior 
  • 移動方式
    • scroll        迴圈移動
    • slide         只移動一個回合
    • alternate   來回移動
direction
  • 移動方向
    • left
    • right
    • up
    • down
 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>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.