HTML tag marquee to achieve rolling effect

Using & lt; marquee & gt; & lt; / marquee & gt; can achieve a variety of scrolling effects without JS control; using this tag can not only move text, but also certain pictures, tables and so on.

1、Grammar:

<marquee>Scroll content < /marquee>

Add contents to scroll between labels.

2、Important attributes:

(1)Scroll direction direction (including 4 values: up, down, left and right);

(2)Rolling mode behavior;

  1>  scroll:Cycle rolling, default effect;

  2> slide:Just stop rolling once.

  3> alternate:Roll back and forth.

(3)Scroll speed: scroll speed is to set the length of movement per scroll in pixels.

(4)Rolling delay: scrolldelay (set the time interval of rolling, in milliseconds).

(5)Rolling cycle loop (the default value is -1, the rolling will continue to circulate).

(6)Rolling range: width height;

(7)Rolling background color (bgcolor);

(8)Blank space (hspace, vSpace);

Leave a Reply

Your email address will not be published. Required fields are marked *