Commit 0358834c by 李伟康

commit 滚动区域上下增加渐变蒙层

1 parent e95b5504
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
<view class="end-text">我是一个有底线的人</view> <view class="end-text">我是一个有底线的人</view>
</template> </template>
</view> </view>
<view class="bottom-mask"></view>
</scroll-view> </scroll-view>
</template> </template>
...@@ -467,14 +467,13 @@ export default { ...@@ -467,14 +467,13 @@ export default {
background-attachment: fixed !important; background-attachment: fixed !important;
&::after { &::after {
position: absolute; position: absolute;
left: 60rpx; left: 0rpx;
bottom: -80rpx; bottom: -80rpx;
width: calc(100% - 270rpx); width: calc(100vw - 220rpx);
height: 80rpx; height: 80rpx;
transform: scaleY(-1); transform: scaleY(-1);
background-image: linear-gradient(180deg, #e9f1fe00 0%, #f3f7ff 100%); background-image: linear-gradient(180deg, #e9f1fe00 0%, #f3f7ff 100%);
content: ''; content: "";
} }
} }
.nothing { .nothing {
...@@ -494,4 +493,12 @@ export default { ...@@ -494,4 +493,12 @@ export default {
text-align: center; text-align: center;
margin: 50rpx 0; margin: 50rpx 0;
} }
.bottom-mask {
position: fixed;
left: 220rpx;
bottom: 0;
width: calc(100vw - 220rpx);
height: 80rpx;
background-image: linear-gradient(180deg, #e9f1fe00 0%, #e9f1fe 100%);
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!