使用position:fixed; bottom: 0;
定位后遮挡正文内容,此时通过给底部按钮设置margin-top
并不生效。需要给正文设置padding-bottom
即可。
微信小程序底部按钮通过position:fixed定位后遮挡正文列表
最新推荐文章于 2023-10-19 16:36:59 发布
使用position:fixed; bottom: 0;
定位后遮挡正文内容,此时通过给底部按钮设置margin-top
并不生效。需要给正文设置padding-bottom
即可。