Day.12.28 HTML走马灯

<!DOCTYPE html>
<html>
 <head>
 <meta  charset="utf-8">
  <title> 走马灯 </title>
 </head>
 <body>
 <div style="width:300px;height:100px;background-color:silver">
    <marquee direction="right">剧毒追踪</marquee>
 </div>
 <hr>
 <!--
        direction:方向
        behavior:滚动方式变换
        loop:循环
        scrollamount:数字越大,越快
        scrolldelay:延迟多少毫秒
 -->
 <div style="width:800px;height:500px;background-color:silver">
    <marquee direction="right" behavior="alternate" loop="2" scrollamount="4" scrolldelay="500"><i m g src="图片路径"></marquee>
 </div>
 </body>
</html>
    原文作者:挂树上的骷髅怪
    原文地址: https://www.jianshu.com/p/07132e44586b
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞