Marquee滚动文字属性及参数设置
2007-12-04 21:57
302 查看
基本语法
-------------------------------------------
<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属性及参数设置
- 多媒体网页效果(一)————滚动文字Marquee属性及参数设置
- 滚动文字Marquee属性及参数设置
- TextView title 文字过多滚动 TextView属性android:ellipsize="marquee"不生效的解决办法
- marquee 滚动文字 效果属性介绍
- 滚动的文字 巧用CSS中marquee属性
- marquee的滚动属性参数
- echo命令选项及设置文字颜色显示详细参数
- Marquee滚动字幕设置(转)
- HTML之marquee(文字滚动)详解
- Spring学习-25:Spring中的JDBC Template(JDBC模板):设置参数到属性文件
- UITextField常用属性:文本框样式、文字样式、键盘样式、左右视图样式、清除按钮设置等
- box-shadow属性的参数设置取值
- 设置文字属性
- struts2技巧与解惑——为什么我的表单参数只有一个生效(控制器对象属性没有或者只有一个被设置)
- CSS设置文字和段落属性
- [BS-03] 统一设置UITabBarController管理的所有VC的tabBarItem图标文字的颜色大小等属性
- Marquee实现文字走马灯滚动效果
- HTML滚动文字代码 marquee标签
- AndroidManifest中activity属性参数设置大全