inline css background-size cover

前端 未结 2 667
南笙
南笙 2021-01-13 16:27

i\'m having the following css code

.imgf{
    background: url(/thatscooking/FotoTC/FotoTC/ALWIN01.JPG) no-repeat center center ; 
    -webkit-background-siz         


        
2条回答
  •  温柔的废话
    2021-01-13 17:24

    Use this code, cleaner than @RAS version:

    background: url(image.jpg) no-repeat center center / cover;
    

提交回复
热议问题