标签: javascript css
是否有一个属性我可以使用或作为“top:0”但是在视口顶部而不是页面顶部。
答案 0 :(得分:2)
您可以在元素上尝试使用position: fixed。
position: fixed