<div class="footer-container">
<!-- 全选区域 -->
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="fullCheck"/>
<label class="custom-control-label" for="fullCheck">全选</label>
</div>
<!-- 合计区域 -->
<div>
<span>合计:</span>
<span class="amount">¥</span>
</div>
<!-- 结算按钮 -->
<button type="button" class="btn btn-primary btn-settle">结算</button>
</div>
<style lang="less" scoped>
.footer-container {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 50px;
background-color: #fff;
border-top: 1px solid #efefef;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 10px;
}
.amount {
font-weight: bold;
color: red;
}
.btn-settle {
min-width: 90px;
height: 38px;
border-radius: 19px;
}
</style>
购物车结算底部实现
最新推荐文章于 2023-05-21 20:58:34 发布