1 回答
TA贡献1829条经验 获得超7个赞
您是否正在寻找这样的解决方案。这是一个弹性盒实现示例。
body {
margin: 0;
}
.help1 {
background-color: black;
color: white;
position: relative;
bottom: 0;
width: 100%;
margin-top: auto;
}
.wrapper {
display: flex;
flex-direction: column;
min-height: 100vh;
}
<div class="wrapper">
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<h1>Sample Line</h1>
<footer class="help1">
<div class="row help1">
<div class="container">
<div class="col span-1-of-2">
<div class="container">
<i class="fas fa-phone fa-3x phone-img"></i>
<p>Contact Details: +00 0000 0000 | +22 1212 2323</p>
</div>
</div>
<div class="col span-1-of-2 help">
<div class="container">
<p class="email"> <strong>Email-address</strong> :bme@gmail.com</p>
</div>
</div>
</div>
</div>
</footer>
</div>
- 1 回答
- 0 关注
- 89 浏览
添加回答
举报