全栈前端前端遇到的问题CSS毛玻璃去白边Flaw2024-07-112025-05-07背景毛玻璃效果1234567<template> <view class="list"> <view class="fixbg"> </view> </view></template> 全局样式添加(APP.vue)123456789101112131415161718192021222324252627282930313233343536373839<script> export default { onLaunch: function() { console.log('App Launch') }, onShow: function() { console.log('App Show') }, onHide: function() { console.log('App Hide') } }</script><style> /*每个页面公共css */ .container{ width: 100%; height: calc(100vh - 70px); overflow: hidden; } .container scroll-view{ height: 100%; } /* 毛玻璃效果其实是 背景模糊用filter的blur 然后加上transform 做一个缩放,如果不加transform会出现白边*/ .fixbg{ width: 100%; height: 100vh; position: fixed; left: 0; top: 0; background-image: url(static/wangyiyunyinyue.png); background-size: cover; background-position: center 0; filter: blur(10px); transform: scale(1.2); }</style>