Html-marquee-tag

提供:Dev Guides
移動先:案内検索

HTML-<marquee>タグ

説明

HTML <marquee>タグは、設定に応じてWebサイトページを横方向または縦方向に表示するテキストまたは画像をスクロールするために使用されます。

<!DOCTYPE html>
<html>

   <head>
      <title>HTML marquee Tag</title>
   </head>

   <body>
      <marquee>This is basic example of marquee</marquee>
      <marquee direction = "up">The direction of text will be from bottom to top.</marquee>
   </body>

</html>

これは、次の結果を生成します-

グローバル属性

このタグは、− link:/html/html_attributes_reference [HTML属性リファレンス]で説明されているすべてのグローバル属性をサポートします

特定の属性

HTML <marquee>タグは、次の追加属性もサポートしています-

Attribute Value Description
behavior scroll slide alternate Defines the type of scrolling.
bgcolor rgb(x,x,x) #xxxxxx colorname Deprecated − Defines the direction of scrolling the content.
direction up down left right Defines the direction of scrolling the content.
height pixels or % Defines the height of marquee.
hspace pixels Specifies horizontal space around the marquee.
loop number Specifies how many times to loop. The default value is INFINITE, which means that the marquee loops endlessly.
scrolldelay seconds Defines how long to delay between each jump.
scrollamount number Defines how how far to jump.
width pixels or % Defines the width of marquee.
vspace pixels Specifies vertical space around the marquee.

イベント属性

このタグは、− link:/html/html_events_reference [HTMLイベントリファレンス]で説明されているすべてのイベント属性をサポートします。

ブラウザのサポート

Chrome Firefox IE Opera Safari Android
Yes Yes Yes Yes Yes ?