代码如下
样式如下
.header{ height:100rpx; width: 100%; position: fixed; top:0; left: 0; z-index: 999; background: black; color:white; text-align: center; line-height: 100rpx; } .footer{ height: 100rpx; width: 100%; position: fixed; bottom: 100rpx; left: 0; background: black; color: white; display: flex; z-index:999; }
固定在窗口上面没问题,固定在下面不行,不知道怎么解决
我去 这个问题折腾半天了。。。。。
缩放后可以解决,等待更新吧。