我有一个带有图片的网站。图片的代码如下:
<img class="featurette-image2 img-fluid mx-auto" data-src="holder.js/500x500/auto" alt="500x500"
src="/images/stuck.jpg" data-holder-rendered="true" style="width: 500px; height: 500px;">
它看起来像这样:
质量得到提高。我知道宽度和高度设置为500px。质量仍然有可能吗?
答案 0 :(得分:0)
我发现此有用的CSS代码:
object-fit: cover;