debug: 小程序背景图片css-兼容性

This commit is contained in:
hackrobot
2024-03-24 13:46:09 +08:00
parent 665d1f1ea9
commit b173a694ee
4 changed files with 41 additions and 14 deletions

View File

@@ -2,7 +2,7 @@
"miniprogramRoot": "dist/", "miniprogramRoot": "dist/",
"projectname": "yidooplanet", "projectname": "yidooplanet",
"description": "yidooplanet", "description": "yidooplanet",
"appid": "wx11f6afc44ea1532f", "appid": "wxa55815dd741a540d",
"setting": { "setting": {
"urlCheck": true, "urlCheck": true,
"es6": false, "es6": false,

View File

@@ -1,7 +1,7 @@
{ {
"miniprogramRoot": "./", "miniprogramRoot": "./",
"projectname": "yidooplanet", "projectname": "yidooplanet",
"appid": "wx11f6afc44ea1532f", "appid": "wxa55815dd741a540d",
"setting": { "setting": {
"es6": false, "es6": false,
"minified": false "minified": false

View File

@@ -28,17 +28,31 @@ const RemoteJob = () => {
return ( return (
<View <View
className="RemoteJob" className="RemoteJob"
style={{ style={
backgroundImage: `url(${remotework})`, {
// backgroundColor: "yellow", // backgroundImage: `url(${remotework})`,
}} // backgroundRepeat:"no-repeat",
// backgroundColor: "yellow",
}
}
> >
<View>RemoteJob</View> <Image
style={{
width: "100%",
height: "100%",
background: " #fff",
borderRadius: "10px",
}}
mode="scaleToFill"
src={remotework}
/>
<View className="ReContent"> <View>远程工作职位</View>
<AtDivider content="" /> <AtDivider content="" />
<View>1.设计师</View> <View>1. 设计师</View>
<View>2.后端工程师</View> <View>2. 开发工程师</View>
<View>3.社交媒体营销</View> <View>3. 社交媒体营销</View>
<View>3.电商运营</View> <View>3. 电商运营</View></View>
</View> </View>
); );
}; };

View File

@@ -1,4 +1,15 @@
.RemoteJob{ .RemoteJob {
// padding: 10px;
position: relative;
Image {
z-index: -1;
position: absolute;
}
.ReContent {
padding: 10px; padding: 10px;
font-size: 25px; font-size: 25px;
width: 320px; width: 320px;
@@ -8,7 +19,9 @@
// align-items: center; // align-items: center;
// justify-content: center; // justify-content: center;
// background-color: #eaff8f; // background-color: #eaff8f;
color: #fff;
font-weight: 400;
border-radius: 20px; border-radius: 20px;
border: solid 1px #8c8c8c; border: solid 1px #8c8c8c;
color: #fff; }
} }