html代码
- <marquee behavior="scroll" direction="center" width="800" height="25" scrollamount="2" onMouseOver="this.stop();" onMouseOut="this.start();">
- 内容
- marquee>
这是再简单不过了!可就由于onMouseOver="this.stop();" onMouseOut="this.start();"这两个事件不知道。又从网上重新下了一个以来实现它的(当鼠标移动上去时,使其停止的功能),可又发现有时却出现问题,弄的头大!
记住这两个功能,使
其停止和开始
本文介绍如何使用HTML的<marquee>标签实现文本滚动效果,并加入鼠标悬停时停止滚动的功能。通过设置onMouseOver和onMouseOut事件,可以轻松控制文本的滚动状态。
2176

被折叠的 条评论
为什么被折叠?



