# 首页背景
根据规范色,延展了首页的背景,和非首页背景。
首页背景(渐变无底纹图片):图片地址
非首页背景颜色色号:#151617
# 示例
<template>
<div class="wrapper">
<image class="bg" src="./assets/image/colmo_bg.png"></image>
<div class="content">
<dof-minibar :backgroundColor="'transparent'" title="2.1首页 - 渐变-无底纹"></dof-minibar>
<scroller> </scroller>
</div>
</div>
</template>
<style scoped>
.wrapper {
background-color: #151617;
position: relative;
}
.bg {
position: fixed;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
}
.content {
position: fixed;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
}
.text_font {
font-size: 90px;
color: #fff;
}
</style>
<script>
import { DofMinibar } from 'dolphin-weex-ui'
export default {
components: { DofMinibar },
data: () => ({}),
computed: {},
created() {},
methods: {}
}
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
点我扫二维码 查看demo