好的,所以我左边有一个段落,屏幕右边有一个图像,我的网页下面有一个页脚。因此,每当我调整浏览器窗口的大小时,图像就会如预期的那样低于段落,但随后突然页脚会跳起并覆盖段落。我该如何解决这个问题?
发布于 2019-05-27 10:28:22
<html>
<style>
#page-container {
position: relative;
min-height: 100vh;
}
#content-wrap {
padding-bottom: 2.5rem; /* Footer height */
}
#footer {
position: absolute;
bottom: 0;
width: 100%;
height: 2.5rem; /* Footer height */
}
</style>
<body>
<div id="page-container">
<div id="content-wrap">
<!-- all other page content -->
</div>
<footer id="footer"></footer>
</div>
</body>
</html>
To set footers on the bottom.
https://stackoverflow.com/questions/-100006807
复制相似问题