美文网首页
微信小程序

微信小程序

作者: Khazan | 来源:发表于2021-08-05 13:02 被阅读0次

    修改图片颜色

    wxml

    <view class="light_box">
    
      <image class="light" src="../../asset/light.svg"></image>
    
    </view>
    

    wxss

    .light_box {
    
      width: 80px;
    
      height: 80px;
    
      margin: 200px auto;
    
      text-indent: -80px;
    
    }
    
    .light {
    
      width: 80px;
    
      height: 80px;
    
      filter: drop-shadow(80px 0px yellow);
    
    }
    

    相关文章

      网友评论

          本文标题:微信小程序

          本文链接:https://www.haomeiwen.com/subject/tbemvltx.html