瀏覽代碼

add 上下分段的背景图

tags/AL.0.8.0_20240113_base
yuan 1 年之前
父節點
當前提交
6f6b5ca559
共有 5 個文件被更改,包括 13 次插入0 次删除
  1. 二進制
      src/components/background-basic/background-lower.jpg
  2. 二進制
      src/components/background-basic/background-upper.jpg
  3. +3
    -0
      src/components/background-basic/index.json
  4. +0
    -0
      src/components/background-basic/index.scss
  5. +10
    -0
      src/components/background-basic/index.vue

二進制
src/components/background-basic/background-lower.jpg 查看文件

Before After
Width: 1080  |  Height: 960  |  Size: 110 KiB

二進制
src/components/background-basic/background-upper.jpg 查看文件

Before After
Width: 1080  |  Height: 960  |  Size: 76 KiB

+ 3
- 0
src/components/background-basic/index.json 查看文件

@@ -0,0 +1,3 @@
{
"component": true
}

+ 0
- 0
src/components/background-basic/index.scss 查看文件


+ 10
- 0
src/components/background-basic/index.vue 查看文件

@@ -0,0 +1,10 @@
<template>
<View style="top: 0; bottom: 0; z-index: -1020">
<View style="z-index: -1010; top: 0" className='position-absolute'>
<Image :src="require('./background-upper.jpg')" mode='widthFix' style="width: 100vw"/>
</View>
<View style="z-index: -1010; bottom: 0" className='position-absolute d-flex justify-content-end'>
<Image :src="require('./background-lower.jpg')" mode='aspectFill' style="width: 100vw"/>
</View>
</View>
</template>

Loading…
取消
儲存