html文字滚动参数属性说明

[复制链接]
查看1939 | 回复0 | 2020-7-21 15:52 | 显示全部楼层 |阅读模式
html文字滚动参数属性说明
先举个例子:
  1. <html>
  2. <head>
  3.         <title>网站建设</title>
  4. </head>
  5. <body>
  6.         <marquee behavior="scroll" direction="up" height="30" style="overflow:hidden;" scrollamount="1" width="300" onMouseOver="stop()" onMouseOut="start()">
  7.                 网站模板!<br />
  8.                 网页模板!<br />
  9.         </marquee>
  10. </body>
  11. </html>
复制代码
direction:方向
        up:上   down:下   left:左    right:右
scrollamount:滚动速度-----------------scroll:滚动   amount:数值
width:宽度   height:高度
onmouseover:当鼠标移上去
onmouseout:当鼠标离开
stop():停止
start():开始
behavior:
        scroll  循环滚动
        alternate  来回滚动
        slide  滚动一次停止
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

UID
1
贡献
387
丢币
38902
主题
4607
回帖
116
注册时间
2018-9-25
最后登录
2024-4-16