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) */
}

你可能感兴趣的:(css,前端,firefox)