标题左右来回移动的动态效果 dreamweaver

来源:百度知道 编辑:UC知道 时间:2024/06/18 18:15:08
dreamweaver里标题左右来回移动的动态效果怎么做??谢谢

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<marquee behavior="alternate" direction="left">ad as as fas </marquee>

<body>
</body>
</html>

上面一段代码就行 ...marquee为移动属性 alternate为来回属性

directions表方向 如果要设为标题 改下大小就行了

使用marquee标签实现的,marquee标签的用法如下
功能
创建一个滚动的文本字幕。
[编辑本段]参数
direction 表示滚动的方向,值可以是left,right,up,down,默认为left
behavior 表示滚动的方式,值可以是scroll(连续滚动)slide(滑动一次)alternate(来回滚动)
loop 表示循环的次数,值是正整数,默认为无限循环
scrollamount 表示运动速度,值是正整数,默认为6
scrolldelay 表示停顿时间,值是正整数,默认为0,单位是毫秒
align 表示元素的垂直对齐方式,值可以是top,middle,bottom,默认为middle
bgcolor 表示运动区域的背景色,值是16