开发者

Is it possible to make a marquee using picture?

Im trying to 开发者_如何学运维make a layout with a picture which appears to be moving like a marquee? Is it possible? Please help.. thanks...


Yes, you can:

<marquee scrolldelay="100" bgcolor="grey">
    <img src="img.png"/>
</marquee>

jsFiddle here

Edit: it works in all modern browers, and even in ie6,7,8


if you just want a moving image....this should suffice :

<marquee behavior="scroll" direction="left"><img src="/pix/smile.gif" width="100" height="100" alt="smile" /></marquee>

Useful link

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜