[CSS3] The different of Background-size between 'cover' and 'contain'

'cover': The smaller axies of image (x axies) should match smaller axies (x axies) of container. So some part of image might be cut off.

 

'container': The large axies of image (x or y) should match larger axies (x or y) of contaner. So that the whole image should be visible.

 

posted @ 2018-02-22 21:01  Zhentiw  阅读(147)  评论(0)    收藏  举报