zl程序教程

您现在的位置是:首页 >  前端

当前栏目

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

css3 The and of &# 39 size between
2023-09-14 09:00:50 时间

'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.