css滚动

来源:互联网 发布:树莓派kali linux中文 编辑:程序博客网 时间:2024/05/16 17:11
<marquee direction="up" onMouseOver="this.scrollAmount='1'"onMouseOut="this.scrollAmount='2'"onMouseDown="this.scrollAmount='4';this.direction='down'"onMouseUp="this.scrollAmount='1';this.direction='up'"scrollAmount="2"height="291"><table cellspacing="2"cellpadding="0"width="100%"aligh="center"><tr><td height="30",style="color:yellow;font.size:0pt;font-weight:bold"><a href="#">美国国务卿希拉里.克林顿昨日访华,洽谈中美经济合作。</a></td></tr><tr><td height="20"align="right">公布时间:2010-2-20</td></tr><tr><td height="30"style="color:yellow;font-size:10pt;font-weight:bold;"><a href="#">希腊债务危机</a></td></tr><tr><td height="20"align="right">公布时间:2010-2-2</td></tr></table></marquee>

滚动<marquee>标签,主要控制滚动

Align

滚动内容的对其方式:top(顶端对齐)middle(居中)bottom(向下对齐)

Direction

滚动方向:up(向上)down(向下)left(向左)right(向右)

Behavior

滚动方式:scroll(循环滚动)slide(一次滚动)alternte(交替滚动)

Loop

循环次数:-1或者Infinite表示无限次滚动

Scrollamount

滚动速度:单位是像素

Scrolldelay

两次滚动的间隔时间

Width

滚动区间的宽度:像素或百分比

Heith

滚动区间的高度:像素或比分比

Bgcolor

滚动区的背景颜色

Hspace

滚动区间与浏览器边界的水平距离

Vspace

滚动区间与浏览器边界的垂直距离