缄默小宝
缄默小宝
  • 发布:2022-12-08 16:34
  • 更新:2022-12-08 16:34
  • 阅读:193

样式赋值得时候 ,第二遍会没赋值上去-webkit-mask-size:100%

分类:uni-app

在组件上赋值样式,'-webkit-mask-size': 100%,这个样式会丢
<view :style="modelmaterial" class="model-material">

        </view>  

this.modelmaterial = {
transition: background 0.8s ease,
'-webkit-mask': url(${this.templeteimage}),
'-webkit-mask-repeat': no-repeat,
'-webkit-mask-size': 100%,
'-webkit-filter': hue-rotate(0deg),
backgroundImage: url(${this.fugaiimage}),
backgroundPosition: center center,
backgroundSize: 100 - this.percent1 + '%',
height: '1624rpx',
opacity: 1 - this.percent2 / 100,
width: 100%,
'mix-blend-mode': 'overlay',
'filter': brightness( + (100 - this.percent) + %),
}

2022-12-08 16:34 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复