您的位置:首页 > Web前端 > CSS

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

2018-02-22 21:01 399 查看
'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.

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: