您的位置:首页技术文章
文章详情页

javascript - 元素自动往上面移动了,描述不清,看图吧

【字号: 日期:2022-12-17 18:38:13浏览:64作者:猪猪

问题描述

javascript - 元素自动往上面移动了,描述不清,看图吧javascript - 元素自动往上面移动了,描述不清,看图吧这是用的pullpage插件,第一次循环滚动后,箭头没有问题,循环一次,箭头自动往上移动了

.footer{ width:0.82rem; height: 0.6rem; position: fixed; bottom:1.5rem; left:3.2rem; animation:sec1-move 1s linear infinite;}@-webkit-keyframes sec1-move { from{bottom:1.5rem; } to{bottom:1.35rem; }}

问题解答

回答1:

你先把 rem单位改成 px及对应的值,然后再试,如果没有问题,就说明原因是rem的参照物size发生了变化。

标签: JavaScript
相关文章: