html marque标签

作者: dreamfly 分类: html 发布时间: 2015-06-25 16:55
1.direction 表示滚动的方向,值可以是left,right,up,down,默认为left
如:<marquee direction=#>小A博客导航</marquee>
2.behavior 表示滚动的方式,值可以是scroll(连续滚动)slide(滑动一次)alternate(来回滚动)
如:<marquee behavior=#>小A博客导航</marquee>
3.loop 表示循环的次数,值是正整数,默认为无限循环
<marquee loop=# behavior=scroll>小A博客导航</marquee>
4. scrollamount 表示运动速度,值是正整数,默认为6
如:<marquee scrollamount=20>小A博客导航</marquee>
5.scrolldelay 表示停顿时间,值是正整数,默认为0,单位是毫秒
如: <marquee scrolldelay=500 scrollamount=100>小A博客导航</marquee>
6.valign 表示元素的垂直对齐方式,值可以是top,middle,bottom,默认为middle
7.align 表示元素的水平对齐方式,值可以是absbottom:绝对底部对齐(与g、p等字母的最下端对齐),absmiddle:绝对中央对齐,baseline:底线对齐,bottom:底部对齐(默认),left:左对齐,middle:中间对齐,right:右对齐,texttop:顶线对齐,top:顶部对齐
  如:<font size=6><marquee align=# width=400>小A博客导航</marquee></font>
8.bgcolor 表示运动区域的背景色,值是16进制的RGB颜色,默认为白色
如:<marquee bgcolor=aaaaee>小A博客导航</marquee>
9.height、width 表示运动区域的高度和宽度,值是正整数(单位是像素)或百分数,默认width=100% height为标签内元素的高度
如:<marquee height=40 width=50% bgcolor=aaeeaa>小A博客导航</marquee>
10.hspace、vspace 表示元素到区域边界的水平距离和垂直距离,值是正整数,单位是像素。
如:<marquee vspace="100" hspace="100" bgcolor="#CCCCCC">小A博客导航</marquee>
11.onmouseover=this.stop() onmouseout=this.start() 表示当鼠标移上区域的时候滚动停止,当鼠标移开的时候又继续滚动。
如:<marquee id="scrollarea" direction="up" scrolldelay="10" scrollamount="1" width="150" height="80" onmouseover="this.stop();" onmouseout="this.start();">小A博客导航</marquee>[2] 

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!

评论已关闭!