marquee 滚动文字 效果属性介绍
2008-04-01 14:50
489 查看
From: http://hi.baidu.com/bdsf163/blog/item/05fa3ec724ae6edfd10060a8.html
基本语法
-------------------------------------------
<marquee>滚动文字 </marquee>
文字移动属性的设置
方向
<direction=#> #=left, right,up,down <marquee direction=left>从右向左移!</marquee>
方式
<bihavior=#> #=scroll, slide, alternate <marquee behavior=scroll>一圈一圈绕着走!</marquee>
<marquee behavior=slide>只走一次就歇了!</marquee>
<marquee behavior=alternate>来回走</marquee>
循环
<loop=#> #=次数;若未指定则循环不止(infinite) <marquee loop=3 width=50% behavior=scroll>只走 3 趟</marquee> <P>
<marquee loop=3 width=50% behavior=slide>只走 3 趟</marquee>
<marquee loop=3 width=50% behavior=alternate>只走 3 趟!</marquee>
速度
<scrollamount=#> <marquee scrollamount=20>啦啦啦,我走得好快哟!</marquee>
延时
<scrolldelay=#> <marquee scrolldelay=500 scrollamount=100>啦啦啦,我走一步,停一停!</marquee>
外观(Layout)设置
对齐方式(Align)
<align=#> #=top, middle, bottom <font size=6>
<marquee align=# width=400>啦啦啦,我会移动耶!</marquee>
</font>
底色
<bgcolor=#> #=rrggbb 16 进制数码,或者是下列预定义色彩:
Black, Olive, Teal, Red, Blue, Maroon, Navy, Gray, Lime,
Fuchsia, White, Green, Purple, Silver, Yellow, Aqua <marquee bgcolor=aaaaee>颜色!</marquee>
面积
<height=# width=#> <marquee height=40 width=50% bgcolor=aaeeaa>面积!</marquee>
空白
(Margins)<hspace=# vspace=#>
<marquee hspace=20 vspace=20 width=150 bgcolor=ffaaaa align=middle>面积!</marquee>
鼠标响应:即鼠标指向就停,离开继续.
onmouseover="this.stop()" onmouseout="this.start()">
例如:<marquee direction=up scrollamount=2 onmouseover="this.stop();" onmouseout="this.start();" width=100 height=100>中华人民共和国中华人民共和国<br>www.cnzz.cc中国站长网欢迎您<br>我学会了, 哈哈哈</marquee>
基本语法
-------------------------------------------
<marquee>滚动文字 </marquee>
文字移动属性的设置
方向
<direction=#> #=left, right,up,down <marquee direction=left>从右向左移!</marquee>
方式
<bihavior=#> #=scroll, slide, alternate <marquee behavior=scroll>一圈一圈绕着走!</marquee>
<marquee behavior=slide>只走一次就歇了!</marquee>
<marquee behavior=alternate>来回走</marquee>
循环
<loop=#> #=次数;若未指定则循环不止(infinite) <marquee loop=3 width=50% behavior=scroll>只走 3 趟</marquee> <P>
<marquee loop=3 width=50% behavior=slide>只走 3 趟</marquee>
<marquee loop=3 width=50% behavior=alternate>只走 3 趟!</marquee>
速度
<scrollamount=#> <marquee scrollamount=20>啦啦啦,我走得好快哟!</marquee>
延时
<scrolldelay=#> <marquee scrolldelay=500 scrollamount=100>啦啦啦,我走一步,停一停!</marquee>
外观(Layout)设置
对齐方式(Align)
<align=#> #=top, middle, bottom <font size=6>
<marquee align=# width=400>啦啦啦,我会移动耶!</marquee>
</font>
底色
<bgcolor=#> #=rrggbb 16 进制数码,或者是下列预定义色彩:
Black, Olive, Teal, Red, Blue, Maroon, Navy, Gray, Lime,
Fuchsia, White, Green, Purple, Silver, Yellow, Aqua <marquee bgcolor=aaaaee>颜色!</marquee>
面积
<height=# width=#> <marquee height=40 width=50% bgcolor=aaeeaa>面积!</marquee>
空白
(Margins)<hspace=# vspace=#>
<marquee hspace=20 vspace=20 width=150 bgcolor=ffaaaa align=middle>面积!</marquee>
鼠标响应:即鼠标指向就停,离开继续.
onmouseover="this.stop()" onmouseout="this.start()">
例如:<marquee direction=up scrollamount=2 onmouseover="this.stop();" onmouseout="this.start();" width=100 height=100>中华人民共和国中华人民共和国<br>www.cnzz.cc中国站长网欢迎您<br>我学会了, 哈哈哈</marquee>
相关文章推荐
- 多媒体网页效果(一)————滚动文字Marquee属性及参数设置
- JQuery实现文字无缝滚动效果示例代码(Marquee插件)
- jquery实现marquee效果(文字或者图片的水平垂直滚动)
- JQuery实现文字无缝滚动效果(Marquee插件)
- Marquee滚动文字属性及参数设置
- JQuery实现文字无缝滚动效果(Marquee插件)
- marquee实现文字滚动效果
- JQuery实现文字无缝滚动效果(Marquee插件)
- Marquee配合DIV实现的文字滚动效果代码
- jquery xMarquee实现文字水平无缝滚动效果
- Marquee配合DIV实现的文字滚动效果代码
- Html 标题滚动效果实现 marquee标签属性
- 怎么用marquee做文字滚动效果
- jquery实现marquee效果(文字或者图片的水平垂直滚动)
- html之marquee实现图片文字滚动效果详解
- HTML中用div标签包含Marquee实现文字走马灯滚动效果
- 滚动文字Marquee属性及参数设置
- 滚动文字Marquee属性及参数设置
- 滚动的文字 巧用CSS中marquee属性
- 亲测Android TextView的文字滚动(marquee)效果