如何在HTML &CSS中阻止页面的页眉和页脚移动[已关闭]

lp0sw83n  于 2023-01-14  发布在  其他
关注(0)|答案(1)|浏览(97)

编辑问题以包含desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem。这将有助于其他人回答问题。
4小时前关门了。
Improve this question
我用HTML制作了一个非常初级的电子商务页面,我不希望页眉和页脚在我上下移动时移动
我在做带位置的页眉:固定和例外,使页眉和页脚不被删除

qhhrdooz

qhhrdooz1#

试着让它粘粘的

.header, .footer{ 
position:sticky;
 }

相关问题