您的位置:首頁技術文章
文章詳情頁

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

瀏覽:104日期:2022-12-17 18:38:13

問題描述

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
相關文章:
国产综合久久一区二区三区