Home > Article > Web Front-end > Marquee attribute analysis in HTML
This article mainly introduces the relevant information on the marquee attribute in detail. Friends who need it can refer to it
This tag is not part of HTML3.2 and only supports MSIE3 Later kernel, so if you use a non-IE kernel browser (such as: Netscape) you may not be able to see some of the following interesting effects
This tag is a container tag
Syntax:
The following is the simplest example:
The code is as follows:
The following two events are often used:
onMouseOut="this.start() ": Used to set the mouse to continue scrolling when it moves out of the area
onMouseOver="this.stop()": Used to set the mouse to stop scrolling when it moves into the area
The code is as follows:
This is a complete example:
The code is as follows:
This tag supports up to 11 attributes:
align
Set the alignment of ed126914ed1419bab26abf7cf307b7b9 tag content
absbottom: Absolute bottom alignment (aligned with the bottom end of letters such as g, p, etc.)
absmiddle: Absolute center Alignment
baseline: bottom line alignment
bottom: bottom alignment (default)
left: left alignment
middle: middle alignment
right: right alignment
texttop: top line alignment
top: Top alignment
The code is as follows:
behavior
Set the scrolling method:
alternate: expressed between two Scroll back and forth between ends.
scroll: Indicates scrolling from one end to the other end and will be repeated.
slide: means scrolling from one end to the other without repetition.
The code is as follows:
bgcolor
Set the background color of active subtitles. The background color can be in RGB or hexadecimal value format or color. name to set.
The code is as follows:
direction
Set the scrolling direction of active subtitles
The code is as follows:
height
Set the height of active subtitles
The code is as follows:
width
Set the width of the active subtitles
The code is as follows:
hspace
Set the distance between the position of the active subtitles and the horizontal border of the parent container
This controls the horizontal (horizontal) space around the display box.
The code is as follows:
vspace
Settings The distance between the position of the active subtitles and the vertical border of the parent container
This controls the vertical space around the display box.
The code is as follows:
loop
Set the number of times to scroll. When loop=-1, it means scrolling all the time. The default is -1
The code is as follows:
scrollamount
Set the scrolling speed of active subtitles in pixels
The code is as follows:
scrolldelay
Set Determine the delay time between the active subtitles scrolling twice, unit millisecond (millisecond)
If the value is large, there will be a step-pause effect
The code is as follows:
and above The above is a detailed explanation of the marquee attribute in HTML introduced by php Chinese website. I hope it will be helpful to everyone.
Related articles:
Detailed usage analysis of marquee
Skillfully use the marquee attribute in HTML to achieve dancing text
A simple method to achieve scrolling effect based on HTML tag marquee
The above is the detailed content of Marquee attribute analysis in HTML. For more information, please follow other related articles on the PHP Chinese website!