当前位置: 首页 > news >正文

踩坑日记 uniapp 底部 tabber遮挡住购物车结算

tabbar 被购物车结算遮挡

在小程序上tabbar没有将固定栏遮挡,如果直接调高,浏览器H5页面是对了,但在小程序上面离底部的定位就太高了

在这里插入图片描述

  • 原代码
// 底部结算样式.shop-foot {border-top: 2rpx solid #F7F7F7;background-color: #FFF;position: fixed;bottom: 0;	// 这里给 bottom:0 H5 直接看不见了left: 0;justify-content: space-between;align-items: center;width: 100%;height: 100rpx;display: flex;}// 购物车样式.shop-item {display: flex;padding: 20rpx;align-items: center;background-color: #F7F7F7;margin-bottom: 10rpx;.shop-image {width: 200rpx;height: 180rpx;}.shop-text {flex: 1;}.shop-color {margin-top: 10rpx;font-size: 28rpx;}.shop-price-num {margin-top: 10rpx;display: flex;justify-content: space-between;}}
  • 修改参数 bottom 这样就能看见了
bottom: var(--window-bottom,0);	

在这里插入图片描述

http://www.lryc.cn/news/185338.html

相关文章:

  • 【MySQL】表的约束(一)
  • Excel宏管理库存清单
  • C语言练习百题之排序算法
  • 通过ElementUi在Vue搭建的项目中实现CRUD
  • 【CSS如何进行圣杯布局】
  • flex 实现的圣杯布局
  • 数字人直播软件排名推荐,铭顺科技数字人品牌抢占“日不落”流量新技能
  • 【AI视野·今日Robot 机器人论文速览 第四十五期】Mon, 2 Oct 2023
  • 【计算机网络】网络编程接口 Socket API 解读(9)
  • 用户端App自动化测试
  • [洛谷]P2697 宝石串(经典好题!)
  • 毫米波汽车雷达测试应用指南
  • 抖音账号矩阵系统开发源码----技术研发
  • C++ 33.学习C++的意义-狄泰软件学院
  • [C++基础]-多态
  • 【Kubernetes】当K8s出现问题时,我们可以从哪些方面排查出
  • SentenceTransformer 之论文解读
  • AI发展历史
  • 想要精通算法和SQL的成长之路 - 简化路径
  • 【哈士奇赠书活动 - 41期】- 〖产品设计软技能:创业公司篇〗
  • MARS: An Instance-aware, Modular and Realistic Simulator for Autonomous Driving
  • 关联规则挖掘(上):数据分析 | 数据挖掘 | 十大算法之一
  • centos7 + citus12 + postgresql 14 安装
  • MySQL、Oracle、SQL Server / MS Access 中的 NULL函数用法
  • App Store审核被拒原因与解决方案
  • ​LeetCode解法汇总121. 买卖股票的最佳时机
  • 【Go】go-es统计接口被刷数和ip访问来源
  • debian 安装 pg --chatGpt
  • 商城小程序代客下单程序开发演示
  • SpringBoot 整合 jetcache缓存