fix: z-index设置问题

This commit is contained in:
hackrobot
2024-03-21 18:44:49 +08:00
parent 231d07a6c2
commit d84e0f7e34
4 changed files with 19 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

BIN
src/images/city/wuhan.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -15,6 +15,9 @@ import guangzhou from "@/images/city/guangzhou.jpg";
import shanghai from "@/images/city/shanghai.jpg"; import shanghai from "@/images/city/shanghai.jpg";
import shenzhen from "@/images/city/shenzhen.jpg"; import shenzhen from "@/images/city/shenzhen.jpg";
import touxiang from "@/images/index/touxiang.jpg"; import touxiang from "@/images/index/touxiang.jpg";
import wuhan from "@/images/city/wuhan.jpg";
import hangzhou from "@/images/city/hangzhou.jpg";
import a1 from "@/images/meetup/a1.jpg"; import a1 from "@/images/meetup/a1.jpg";
import a2 from "@/images/meetup/a2.jpg"; import a2 from "@/images/meetup/a2.jpg";
@@ -28,8 +31,6 @@ import QrCode from "@/componments/QrCode";
import Nomadbook from "@/pages/index/componments/Nomadbook"; import Nomadbook from "@/pages/index/componments/Nomadbook";
import JoinWechat from "@/pages/index/componments/JoinWechat"; import JoinWechat from "@/pages/index/componments/JoinWechat";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
// import beijing from "../../images/city/beijing.jpg"; // import beijing from "../../images/city/beijing.jpg";
@@ -89,8 +90,6 @@ export default function Index() {
// }); // });
}, []); }, []);
const HomeCardItem = () => { const HomeCardItem = () => {
return [ return [
{ {
@@ -100,12 +99,12 @@ export default function Index() {
customCom: "test", customCom: "test",
}, },
// 双数插入 // 双数插入
{ {
cityName: "nomad书籍", cityName: "nomad书籍",
imagePath: shanghai, imagePath: shanghai,
isCustom: true, isCustom: true,
customCom: <Nomadbook/>, customCom: <Nomadbook />,
}, },
{ {
cityName: "上海", cityName: "上海",
@@ -143,6 +142,19 @@ export default function Index() {
// isCustom: true, // isCustom: true,
// customCom: <JoinWechat />, // customCom: <JoinWechat />,
// }, // },
{
cityName: "武汉",
imagePath: wuhan,
isCustom: false,
customCom: "test",
},
{
cityName: "杭州",
imagePath: hangzhou,
isCustom: false,
customCom: "test",
}
].map((item, index) => { ].map((item, index) => {
return ( return (
// 设置自动换行 // 设置自动换行

View File

@@ -67,7 +67,7 @@
position: absolute; position: absolute;
color: #fff; color: #fff;
font-size: 40px; font-size: 40px;
z-index: 99; // z-index: 99;
} }
Image{ Image{
// position: absolute; // position: absolute;