开发者社区> 问答> 正文

如何使我的图片动起来

HTML和CSS的新功能。谁能教我如何将我的图片从当前位置动画化到另一个位置?例如,从“顶部:280像素:左侧600像素”移动;至顶部:180px;左500像素;”

需要有人指导我,谢谢。下面是我当前的程序:

   <head>
  <meta charset="utf-8">
  <title></title>


 <style>

   #robot {
     position: fixed;
     top: 280px;
     left: 600px;
     border-radius: 50%;
     width: 50px;
     height: 60px;
   }


      body {

        height: 100%;
        width: 100%;
        background-image: url('TPHRG floorplan1.png');
        background-repeat: no-repeat;
        background-attachment: fixed;
        /* background-position: center; */
        background-size: 980px 400px, cover;

        }



    </style>

      <body>

        <img id="robot" src="pic_8.PNG">


        <?php



         ?>

      </body>

展开
收起
社区秘书 2019-12-04 13:40:54 587 0
0 条回答
写回答
取消 提交回答
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载