h5跑马灯实现marquee

本文详细解释了HTML中的marquee标签,包括其行为(连续滚动)、滚动方向、循环次数、滚动速度和停顿时间等关键属性,展示了如何创建动态滚动效果。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

<marquee style="position: absolute;z-index: 999;color: red;font-weight: bold;font-size: 18px;" align="left" behavior="scroll" direction="left" height="30px" width="100%" hspace="50" vspace="5" loop="5" scrollamount="5" scrolldelay="100" onMouseout="this.start()" onMouseover="this.stop()">
	<div class="hide" id="affiche">
		<img width="20" height="20" src="imgs/xxx.png"></img>
		<font style="cursor: pointer;line-height: 17px;" id="alarm">xxx</font>
	</div>
</marquee>

marquee属性说明:
behavior:滚动方式,scroll(连续滚动)
direction:滚动方向,默认left
loop:循环次数,默认6,我这里是5次滚动结束
scrollamount:滚动速度
scrolldelay:停顿时间
hspace:到边界的水平距离
vspace:到边界的垂直距离

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值