I want to show an image from an URL with a certain width and height even if it has a different size ratio. So I want to resize (maintaining the ratio) and then cut the imag
If you are using Bootstrap, try using { background-size: cover; } for the maybe give the div a class say so it becomes div.example{ background-size: cover} 0 讨论(0) 查看其它19个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
{ background-size: cover; }
maybe give the div a class say so it becomes div.example{ background-size: cover} 0 讨论(0) 查看其它19个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
so it becomes div.example{ background-size: cover} 0 讨论(0) 查看其它19个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
div.example{ background-size: cover}