css解决图片失真问题

1.背景图片失真

.con{
    height:100vh;
    width:100vm;
    background: url(../../assets/login/background.png) 100% 100%;
    background-color: #2d3a4b;
    background-size: 100vm 100vh;
    image-rendering: -webkit-optimize-contrast;
    }

2.图片失真

img {    
    image-rendering: -moz-crisp-edges; /* Firefox */     
    image-rendering: -o-crisp-edges; /* Opera */      
    image-rendering: -webkit-optimize-contrast; /*Webkit (non-standard naming) */ 
    image-rendering: crisp-edges; \
    -ms-interpolation-mode: nearest-neighbor; /* IE (non-standard property) */
}

    原文作者:皮卡皮卡qiu~
    原文地址: https://blog.csdn.net/yzxzxf/article/details/123373195
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞