在uniapp中对APP与H5同时进行一个项目的编写时:
需要注意固定定位要进行APP与H5的条件编译
position: fixed;
/* #ifdef APP-PLUS */
top: 0;
//bottom:0;
/* #endif */
/* #ifdef H5 */
top: 88rpx;//导航栏在H5中占位88rpx
//bottom: 88rpx;//底部导航在H5中同样占位88rpx
/* #endif */
能不用定位,请尽量不要使用定位
在uniapp中对APP与H5同时进行一个项目的编写时:
需要注意固定定位要进行APP与H5的条件编译
position: fixed;
/* #ifdef APP-PLUS */
top: 0;
//bottom:0;
/* #endif */
/* #ifdef H5 */
top: 88rpx;//导航栏在H5中占位88rpx
//bottom: 88rpx;//底部导航在H5中同样占位88rpx
/* #endif */
能不用定位,请尽量不要使用定位