- 首先判断是否为快手小程序
/* #ifdef MP-KUAISHOU */
如果是快手小程序 则该部分代码块生效
/* #endif */
- 使用元素选择器 + 属性选择器获取根标签
/* #ifdef MP-KUAISHOU */
page[is-wrapper]{
background-image: url(https:*****.png);
background-size: 100% 100%;
position: fixed;
}
/* #endif */
/* #ifdef MP-KUAISHOU */
如果是快手小程序 则该部分代码块生效
/* #endif */
/* #ifdef MP-KUAISHOU */
page[is-wrapper]{
background-image: url(https:*****.png);
background-size: 100% 100%;
position: fixed;
}
/* #endif */