Skip to content

Commit 4867f29

Browse files
committed
fix 图片定位
1 parent 6edb5c6 commit 4867f29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/src/components/Bg.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import _ from "lodash";
33

44
export default component$(()=>{
55
return <div class="absolute bottom-0 left-0 right-0 w-full h-max z--1 of-hidden">
6-
<img src="https://web-assets.c5y.moe/B50/bg.png" class="h-max w-full" />
6+
<img src="https://web-assets.c5y.moe/B50/bg.png" class="block h-max w-full" />
77
<img src="https://web-assets.c5y.moe/B50/fish.png" class="absolute bottom-0 left-0 right-0 w-full h-max" style={{
88
transform: `translateY(${_.random(-75, 50)}px) translateX(${_.random(-150, 50)}px) rotate(${_.random(-5, 5)}deg)`,
99
}} />

0 commit comments

Comments
 (0)