Junjie
2024-11-09 a2019ade7b884799e639150021c3cdeef27eea72
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<template>
    <view>
        <view class="container">
            dasdasdas dasd 
        </view> 
        
        <view class="box">
            <view class="bg1">
                背景底层
            </view>
            <view class="bg2">
                <view class="bg2-glass"></view>
                <text class="text">背景上层</text>
            </view>
        </view>
        
        
        <view class="box2">
            
        </view>
        
        <view class="box3"></view>
        
        <view class="box4"></view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                
            }
        },
        methods: {
            
        }
    }
</script>
 
<style>
    :root {
        --pcol: #888;
    }
    .container {
        margin: 8px;
        min-height: 100px;
        font-size: 40px;
        color: #ffffff;
        background-color: #333;
        filter: blur(.1px); /* 设置滤镜效果 */
    }
    .container::before {
        filter: blur(1px); /* 设置滤镜效果 */
        margin: 8px;
        min-height: 100px;
    }
    .box {
        background-color: azure;
        position: relative;
        margin: 8px;
    }
    .bg1 {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 48rpx;
        min-height: 200rpx;
        background-color: #92cbff;
        white-space: nowrap;
    }
    .bg2 {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 16rpx;
        min-height: 200rpx;
    }
    .bg2-glass {
        position: absolute;
        content: '';
        width: 0;
        height: 0;
        top: 20px;
        left: 0;
        right: 0;
        bottom: 0;
        border-top: 10px solid transparent;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid red;
    }
    .bg2::before {
        position: absolute;
        content: '';
        top: 0px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(255, 255, 255, .5);
        backdrop-filter: blur(4px);
        border: 1px solid #000;
    }
    .text {
        position: absolute;
    }
    .box2 {
        margin-top: 100px;
        width: 0px;
        height: 0px;
        border: 100px solid transparent;
        border-bottom-color: red;
    }
    .box3 {
        width: 0px;
        height: 0px;
        border-top: 100px solid transparent;
        border-left: 100px solid gray;
        border-right: 100px solid transparent;
        border-bottom: 100px solid gray;
    }
    .box4 {
        width: 100%;
        height: 100px;
        background-color: #92cbff;
        position: relative;
        margin-top: 30px;
    }
    .box4::before {
        position: absolute;
        content: '';
        width: 0;
        height: 0;
        top: -20px;
        left: 0;
        right: 0;
        bottom: 0;
        border-top: 10px solid transparent;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid red;
    }
</style>